photo.php function removed