code: public static BufferedImage loadCompatibleImage(InputStream in) throws IOException {
          BufferedImage image = ImageIO.read(in);
          if(image == null) return null;
          return toCompatibleImage(image);
      }
docs: <p>
  Returns a new compatible image from a stream. The image is loaded from
  the specified stream and then turned, if necessary into a compatible
  image.
  </p>
  
  @see #createCompatibleImage(java.awt.image.BufferedImage)
  @see #createCompatibleImage(java.awt.image.BufferedImage, int, int)
  @see #createCompatibleImage(int, int)
  @see #createCompatibleTranslucentImage(int, int)
  @see #toCompatibleImage(java.awt.image.BufferedImage)
  @param in
  the stream of the picture to load as a compatible image
  @return a new translucent compatible <code>BufferedImage</code> of the
  specified width and height
  @throws java.io.IOException
  if the image cannot be read or loaded