Get pixel values out of an image.