code: function init(givenOptions) {
          options = $.extend({}, $.fn.imageupload.defaultOptions, givenOptions);
  
          var $imageupload = this;
          var $fileTab = $imageupload.find('.file-tab');
          var $fileTabButton = $imageupload.find('.panel-heading .btn:eq(0)');
          var $browseFileButton = $fileTab.find('input[type="file"]');
          var $removeFileButton = $fileTab.find('.btn:eq(1)');
          var $urlTab = $imageupload.find('.url-tab');
          var $urlTabButton = $imageupload.find('.panel-heading .btn:eq(1)');
          var $submitUrlButton = $urlTab.find('.btn:eq(0)');
          var $removeUrlButton = $urlTab.find('.btn:eq(1)');
  
          // Do a complete reset.
          resetFileTab($fileTab);
          resetUrlTab($urlTab);
          showFileTab($fileTab);
          enable.call($imageupload);
          
          // Unbind all previous bound event handlers.
          $fileTabButton.off();
          $browseFileButton.off();
          $removeFileButton.off();
          $urlTabButton.off();
          $submitUrlButton.off();
          $removeUrlButton.off();
  
          $fileTabButton.on('click', function() {
              $(this).blur();
              showFileTab($fileTab);
          });
  
          $browseFileButton.on('change', function() {
              $(this).blur();
              submitImageFile($fileTab);
          });
  
          $removeFileButton.on('click', function() {
              $(this).blur();
              resetFileTab($fileTab);
          });
  
          $urlTabButton.on('click', function() {
              $(this).blur();
              showUrlTab($urlTab);
          });
  
          $submitUrlButton.on('click', function() {
              $(this).blur();
              submitImageUrl($urlTab);
          });
  
          $removeUrlButton.on('click', function() {
              $(this).blur();
              resetUrlTab($urlTab);
          });
      }
docs: ----------------------------------------------------------------------------- Public Methods -----------------------------------------------------------------------------