code: @Override
      public boolean drawImage(Image img, int x, int y, Color bgcolor, 
              ImageObserver observer) {
          if (img == null) {
              return true;
          }
          int w = img.getWidth(null);
          if (w < 0) {
              return false;
          }
          int h = img.getHeight(null);
          if (h < 0) {
              return false;
          }
          return drawImage(img, x, y, w, h, bgcolor, observer);
      }
docs: Draws an image at the location {@code (x, y)}.  Note that the
  {@code observer} is ignored.
  
  @param img  the image ({@code null} permitted...draws nothing).
  @param x  the x-coordinate.
  @param y  the y-coordinate.
  @param bgcolor  the background color ({@code null} permitted).
  @param observer  ignored.
  
  @return {@code true} if there is no more drawing to be done.