ImageViewer - push static file-scope variables into the class.  also use
pdfapp's userdata mechanism for storing a pointer to the viewer.  All
this so we can (hopefully) open and view  multiple files.