small refactoring to photo specs