@Override
      public boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height) {
        if ((infoflags & (WIDTH | HEIGHT)) != 0) {
          scheduleUpdate();
          return false;
        }
        return true;
      }
@Override
      public boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height)