photo page  refactored