Fixed bug that caused view_image and view_thumb to fail on 64-bit ubuntu.