locate-thumbnails: fix autorotation

This correctly handles 270° rotations but is still 
inadequate long-term, where it would be nice to have
free-rotation but that needs more test data.