Understanding of getImageData