Fix for portrait-orientation raw image reads, from Morteza Ramezanali (#878)
Fix case typo for LatLong env map creation in "prman mode".
Also make the comparison on the other end case insensitive just to be safe.
Fixes #877
TIF output support of Exif (only available for libtiff >= 4.0.2)