public void updateCombinedImage() {
		//draw layers on top of one another
		combinedImage = new BufferedImage(JIP.iWidth, JIP.iHeight, BufferedImage.TYPE_INT_ARGB);
		Graphics g = combinedImage.getGraphics();
		for (BufferedImage i : layers) {
			g.drawImage(i, 0, 0, null);
		}
		
		//draw graphics layer on top of everything else
		if (graphicsLayer != null)
			g.drawImage(graphicsLayer, 0, 0, null);
		
		//repaint
		validate();
		repaint();
	}