updated ajax call to insert photo row