Fix bug when uploading new directory
Added --photoset-id. Refactored API call execution