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