Fix orientation for images having an orientation of 5 in exif.

For #9436.
Merge branch 'fix-lr-import-orientation'

For #9436.

* fix-lr-import-orientation:
  Fix orientation for images having an orientation of 5 in exif.