Get image rotation angle 

Properly get image rotation angle, plus fix the XY/LONLAT filled-in test properly for Internet Explorer