code: public static BufferedImage loadCompatibleImage(URL resource)
              throws IOException {
          BufferedImage image = ImageIO.read(resource);
          return toCompatibleImage(image);
      }
docs: <p>Returns a new compatible image from a URL. The image is loaded from the
  specified location 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 resource the URL 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