width = ri.getWidth(); height = ri.getHeight();  image = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);  System.err.println(image.toString()); System.err.println(image.getSampleModel().toString());  Graphics2D g2 = image.createGraphics();  if (thumb != null) { g2.drawImage(thumb, 0, 0, width, height, this); } else { g2.setColor(Color.BLACK); g2.fillRect(0, 0, width, height); }  g2.dispose(); repaint();  ri.addChangeListener(this);  ri.startProduction(this);
this(ri, null);
   public SwingImagePanel(RendererInterface ri, Image thumb)   {      width = ri.getWidth();      height = ri.getHeight();      image = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);      System.err.println(image.toString());      System.err.println(image.getSampleModel().toString());      Graphics2D g2 = image.createGraphics();      if (thumb != null)      {         g2.drawImage(thumb, 0, 0, width, height, this);      }      else      {         g2.setColor(Color.BLACK);         g2.fillRect(0, 0, width, height);      }      g2.dispose();      repaint();      ri.addChangeListener(this);      ri.startProduction(this);   }