Update photos.php