code: function handleReject(carousel) {
  
                  $element.css({ 'height': carousel.getOuterHeight() + 'px' });
  
                  vm.isLoading = false;
                  vm.isSuccessful = false;
              }
docs: == Preloaded images reject  handler