reads EXIF information and rotate image to the correct orientation