added comments for savephoto.php