processPhotos updated