code: function screenshot(name, options) {
        var options  = options || {};
        var newPath = path;
  
        // options to override
        if(options.selector) { selector = options.selector; }
        if(options.path) { newPath = path + '/' + options.path; }
        if(Array.isArray(options.exclude)) { exclude = exclude.concat(options.exclude); }
  
        // Check if in phantomjs browser and PhantomScreenshot exists
        if(window.callPhantom && window.PhantomScreenshot) {
          asyncScreenshot(name, newPath);
        }
      }
docs: Helper function to take screenshot if in phantomjs environment
  
  @param  {String} name    - Name of the image to be saved
  @param  {Object} options - selector[String], path[String], exclude[Array]