iteration works! need to set max = total number of photos to upload