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

I am using the orientation information, that is stored in the MediaStore, to rotate the thumbnail.