
class PixelImageSprite extends PixelSprite {
  private int imageX, imageY;
  private PixelImage image;

  public PixelImageSprite( PixelImage image ) {
    this( 0, 0, image );
  }

  public PixelImageSprite( int imageX, int imageY, PixelImage image ) {
    this.imageX = imageX;
    this.imageY = imageY;
    this.image = image;
  }

  public void renderHook( PixelPanel panel, double parentX, double parentY ) {
    panel.drawImage( (int) ( parentX + x + imageX ), (int) ( parentY + y + imageY ), image );
  }
}
