renamed script to PhotoSort.php