Handle images with EXIF data but no orientation tag

Produced by some Android phones, for instance.