private void constructImage(){
		try {
			URL url = this.getClass().getResource("/res/"+text+".png");
			if(url==null){throw new IOException();}
			image = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);
			BufferedImage img = ImageIO.read(url);
			((Graphics2D)image.getGraphics()).drawImage(img.getScaledInstance(width, height, Image.SCALE_SMOOTH),0,0,null);
			return;
		} catch (IOException e) {}
		
		Graphics2D g = (Graphics2D)image.getGraphics();
		g.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
		if(drawBorder){
			g.setColor(whiteText?Color.white:Color.black);
			g.fillRect(0, 0, width, height);
		}
		g.setColor(whiteText?Color.black:Color.white);
		if(drawBorder)
			g.fillRect(2, 2, width-4, height-4);
		else
			g.fillRect(0, 0, width, height);
		g.setColor(whiteText?Color.white:Color.black);
		g.setFont(new Font("Arial", Font.PLAIN, height-height/5));
		g.drawString(text, width/2-g.getFontMetrics().stringWidth(text)/2, height/2+g.getFontMetrics().getHeight()/4);
	}