fixed getImageData