Correct image rotation in Gallery - thanks to CastagnaIT