Update photo.php

profile integration (some part)