Component parent = awtComponent.getParent(); ComponentPeer parentPeer = parent.getPeer(); return parentPeer.createImage(width, height);
Image image = Toolkit.getDefaultToolkit().createImage(prod); return image;
  public Image createImage(int width, int height)  {    Component parent = awtComponent.getParent();    ComponentPeer parentPeer = parent.getPeer();    return parentPeer.createImage(width, height);  }