Fixing image rotation and Facebook share