add image-viewer mode