Added the loop to cycle through and get all photos.