/**
  * Reads a PNG from a stream.
  *
  * @param is the stream
  * @throws IOException on error
  * @return the image
  */
 public static Image getImage(InputStream is) throws IOException {
   PngImage png = new PngImage(is);
   return png.getImage();
 }