Update photo.class.php