Fix for issue 973 (Sharing photos are in wrong format on the Galaxy S3)

Orientation information that is stored in the MediaStore is used to rotate the thumbnail and actual image.