add sort photo script