/**
   * Create an ImageRepresentation for the given Image. The width and height are unknown at this
   * point. The color model is a hint as to the color model to use when creating the buffered image.
   * If null, the src color model will be used.
   */
  public ImageRepresentation(ToolkitImage im, ColorModel cmodel, boolean forceCMhint) {
    image = im;

    if (image.getSource() instanceof InputStreamImageSource) {
      src = (InputStreamImageSource) image.getSource();
    }

    setColorModel(cmodel);

    this.forceCMhint = forceCMhint;
  }