code: public void copyArea(Image target, int x, int y) {
  		int format = target.getTexture().hasAlpha() ? SGL.GL_RGBA : SGL.GL_RGB;
  		target.bind();
  		GL.glCopyTexImage2D(SGL.GL_TEXTURE_2D, 0, format, x, screenHeight
  				- (y + target.getHeight()), target.getTexture()
  				.getTextureWidth(), target.getTexture().getTextureHeight(), 0);
  		target.ensureInverted();
  	}
docs: Copy an area of the rendered screen into an image. The width and height
  of the area are assumed to match that of the image
  
  @param target
  The target image
  @param x
  The x position to copy from
  @param y
  The y position to copy from