res = Toolkit.getDefaultToolkit().prepareImage(img, width, height, ob);
return Toolkit.getDefaultToolkit().prepareImage(img, width, height, ob);
  public boolean prepareImage(Image img, int width, int height, ImageObserver ob)  {    Component parent = awtComponent.getParent();    boolean res;    if(parent != null)      {    ComponentPeer parentPeer = parent.getPeer();        res = parentPeer.prepareImage(img, width, height, ob);      }    else      {        res = Toolkit.getDefaultToolkit().prepareImage(img, width, height, ob);      }    return res;  }