code: function (options, required) {
  
      // Convert old options
  
      // centeredX/centeredY are deprecated
      if (options.centeredX || options.centeredY) {
        if (window.console && window.console.log) {
          window.console.log('jquery.backstretch: `centeredX`/`centeredY` is deprecated, please use `alignX`/`alignY`');
        }
        if (options.centeredX) {
          options.alignX = 0.5;
        }
        if (options.centeredY) {
          options.alignY = 0.5;
        }
      }
  
      // Deprecated spec
      if (options.speed !== undefined) {
  
        if (window.console && window.console.log) {
          window.console.log('jquery.backstretch: `speed` is deprecated, please use `transitionDuration`');
        }
  
        options.transitionDuration = options.speed;
        options.transition = 'fade';
      }
  
      // Typo
      if (options.resolutionChangeRatioTreshold !== undefined) {
        window.console.log('jquery.backstretch: `treshold` is a typo!');
        options.resolutionChangeRatioThreshold = options.resolutionChangeRatioTreshold;
      }
  
      // Current spec that needs processing
  
      if (options.fadeFirst !== undefined) {
        options.animateFirst = options.fadeFirst;
      }
  
      if (options.fade !== undefined) {
        options.transitionDuration = options.fade;
        options.transition = 'fade';
      }
  
      if (options.scale) {
        options.scale = validScale(options.scale);
      }
  
      return processAlignOptions(options);
    }
docs: /* Process options