add functions to gui Util.js to check file extension for image/geometry
clean up gui imageviewer a bit