code: function( location, callback ) {
  
          var scope = this;
  
          if(
              location === null
              && scope.opts.callbackReturn ===
                  Webcam.CallbackReturnTypes.buffer
          ) {
  
              console.warn(
                  "If capturing image in memory\
                  your callback return type cannot be the location"
              );
  
              scope.opts.callbackReturn = "buffer";
  
          }
  
          var fileType = Webcam.OutputTypes[ scope.opts.output ];
  
          var location = location === null
              ? null
              : ( location.match( /\..*$/ )
                  ? location
                  : location + "." + fileType
              );
  
  
          //Shell statement grab
  
          var sh = scope.generateSh( location );
  
          if( scope.opts.verbose ) {
  
              console.log( sh );
  
          }
  
  
          //Shell execute
  
          var shArgs = {
              maxBuffer: 1024 * 10000
          };
  
          EXEC( sh, shArgs, function( err, out, derr ) {
  
              if( err ) {
  
                  return callback && callback( err );
  
              }
  
              if( scope.opts.verbose && derr ) {
  
                  console.log( derr );
  
              }
  
  
              //Run validation overrides
  
              var validationErrors;
  
              if( validationErrors = scope.runCaptureValidations( derr ) ) {
  
                  return callback && callback( validationErrors );
  
              }
  
  
              //Callbacks
  
              var shot = scope.createShot( location, derr );
  
              if( scope.opts.saveShots ) {
  
                  scope.shots.push( shot );
  
              }
  
              scope.dispatch({ type: "capture", shot: shot });
  
              callback && (
                  scope.handleCallbackReturnType( callback, shot )
              );
  
          });
  
      }
docs: Capture shot
  
  @method capture
  
  @param {String} location
  @param {Function} callback
  @return void