code: public Image getImage(int frame) {
          GifFrame gf = (GifFrame)frames.get(frame - 1);
          return gf.image;
      }
docs: Gets the image from a frame. The first frame is 1.
  @param frame the frame to get the image from
  @return the image