some little change for handlers/photo.py