Added deletephoto.php and other minor changes.