public BufferedImage createCompatibleImage(int w, int h, int transparency) {
		if (getFullScreenWindow() == null)
			return GraphicsEnvironment.getLocalGraphicsEnvironment()
					.getDefaultScreenDevice().getDefaultConfiguration()
					.createCompatibleImage(w, h, transparency);

		return getFullScreenWindow().getGraphicsConfiguration()
				.createCompatibleImage(w, h, transparency);

	}