fixed photos.py