Imageviewer optimizations