Implemented iterative upload of photos with 40 photos in one request