tmpImage.paintIcon(getContentPane(), g, getLocation().x + (getWidth() - tmpImage.getIconWidth()) / 2, getLocation().y + (getHeight() - tmpImage.getIconHeight()) / 2);
imageRect = new Rectangle(getLocation().x + (getWidth() - tmpImage.getIconWidth()) / 2, getLocation().y + (getHeight() - tmpImage.getIconHeight()) / 2, tmpImage.getIconWidth(), tmpImage.getIconHeight()); tmpImage.paintIcon(getContentPane(), g, imageRect.x, imageRect.y	);
		public void paintComponent(Graphics g) {			//Log.log(Log.LEVEL_TRACE, MODULE, "Painting ImageContentPane...");			//Log.logStack(Log.LEVEL_TRACE, MODULE);			Color c = GalleryRemote._().properties.getColorProperty(SLIDESHOW_COLOR);			if (c != null) {				g.setColor(c);			} else {				g.setColor(getBackground());			}			g.fillRect(0, 0, getSize().width, getSize().height);			//g.clearRect(0, 0, getSize().width, getSize().height);			if (currentImage != null) {				ImageIcon tmpImage = ImageUtils.rotateImageIcon(currentImage, loadPicture.getAngle(),						loadPicture.isFlipped(), this);				tmpImage.paintIcon(getContentPane(), g,						getLocation().x + (getWidth() - tmpImage.getIconWidth()) / 2,						getLocation().y + (getHeight() - tmpImage.getIconHeight()) / 2);			}		}