minor changes in gen_photos.py