Method to read back the orientation of an image.