Fixes in photoviewer.py