code: function () {
                          var generateUniqueCollisionOption = Windows.Storage.CreationCollisionOption.generateUniqueName,
                              localFolder = Windows.Storage.ApplicationData.current.localFolder;
  
                          capturedPictureFile.copyAsync(localFolder, capturedPictureFile.name, generateUniqueCollisionOption).done(function (copiedFile) {
                              destroyCameraPreview();
                              successCallback(copiedFile);
                          }, function(err) {
                              destroyCameraPreview();
                              errorCallback(err);
                          });
                      }
docs: Callback for Select button - copies intermediate file into persistent application's storage