public void paint(Graphics g) {
		g.setColor(Color.GRAY);
		g.fillRect(0, 0, 1000, 1000);
		
		g.setColor(new Color(clr));
		
		g.drawImage(texture, 0, 0, 128 * scale, 128 * scale, null);

		if(curTool == 3) {
			this.overlay = new BufferedImage(128, 128, BufferedImage.TYPE_INT_ARGB);
			this.overLayGraphics = this.overlay.getGraphics();
			this.overLayGraphics.setColor(new Color(clr));
			if(currentMpos != null) {
				this.overLayGraphics.drawLine((int)mousePress.x, (int)mousePress.y, (int)currentMpos.x, (int)currentMpos.y);
			}
		}
		g.drawImage(overlay, 0, 0, 128 * scale, 128 * scale, null);
		
		g.setColor(Color.RED);
		g.drawString("Mouse X: " + mx + " Mouse Y: " + my, 10, 360);
		
		if(scale > 4) {
			g.setColor(Color.GRAY);
			for(int i = 0; i < scale*128; i+= scale) {
				g.drawLine(0, i, scale*128, i);
				g.drawLine(i, 0, i, scale*128);
			}
		}
	}