PhotoViewer class