Fixed GetImageData crash.