create PhotoViewer model to handle photo viewing