@Override
	protected void paintComponent(Graphics g) {

		if (counter != 0) {
			super.paintComponent(g);
			for (int i = 0; i < 4; i++) {
				g.drawImage(layers[i], 0, 0, null);
				if (i == layerSelected) {
					listener.drawPreview((Graphics2D) g);
				}
			}

		}

	}