Added getImageData and getImagePNG methods