code: private void createImageAndGraphics(int layer) {
  		layeredImage[layer] = new BufferedImage(tileWidth, tileHeight,
  				BufferedImage.TYPE_INT_ARGB);
  		layeredGraphics[layer] = layeredImage[layer].createGraphics();
  		layeredGraphics[layer].setRenderingHint(
  				RenderingHints.KEY_ANTIALIASING,
  				RenderingHints.VALUE_ANTIALIAS_ON);
  	}
docs: Create a new empty Image and Graphics
  
  @param layer
  layer index