code: public void setImage(BufferedImage image) {
  		this.image = image;
  		setPreferredSize(new Dimension(image.getWidth(), image.getHeight()));
  		setSize(new Dimension(image.getWidth(), image.getHeight()));
  		getParent().repaint(0);
  	}
docs: Set the image to be displayed
  
  @param image The image to be displayed