fix crash in generate_thumbnails_with_builtin()
generate_thumbnails_with_builtin: improve readability
more readability
Do not use exif to load lagre thumbnails.
fix swapped orientations 6 and 8
For large thumbnails use exif orientation, but not embedded thumbnail.