imageGUI: better bounds checking and centering when viewing JPEG files.