code: function ScreenshotReporter(options) {
  	options = options || {};
  
  	if(!options.baseDirectory || options.baseDirectory.length === 0) {
  		throw new Error('Please pass a valid base directory to store the ' +
  			'screenshots into.');
  	} else {
  		this.baseDirectory = options.baseDirectory;
  	}
  
  	this.pathBuilder = options.pathBuilder || defaultPathBuilder;
  	this.metaDataBuilder = options.metaDataBuilder || defaultMetaDataBuilder;
  	this.takeScreenShotsForSkippedSpecs =
  		options.takeScreenShotsForSkippedSpecs || false;
  	this.takeScreenShotsOnlyForFailedSpecs =
  		options.takeScreenShotsOnlyForFailedSpecs || false;
  }
docs: Class: ScreenshotReporter
  Creates a new screenshot reporter using the given `options` object.
  
  For more information, please look at the README.md file.
  
  Parameters:
  (Object) options - Object with options as described below.
  
  Possible options:
  (String) baseDirectory - The path to the directory where screenshots are
  stored. If not existing, it gets created.
  Mandatory.
  (Function) pathBuilder - A function which returns a path for a screenshot
  to be stored. Optional.
  (Function) metaDataBuilder - Function which returns an object literal
  containing meta data to store along with
  the screenshot. Optional.
  (Boolean) takeScreenShotsForSkippedSpecs - Do you want to capture a
  screenshot for a skipped spec?
  Optional (default: false).