code: public void imageUpdate(ImageReader source, BufferedImage theImage,
              int minX, int minY, int width, int height, int periodX,
              int periodY, int[] bands)
      {
          if (image == null || !image.equals(theImage))
          {
              repaint(0);
              image = theImage;
          }
      }
docs: ======================================================================================================