public function __construct($binPath = '', $width = 640, $height = 480, $quality = 60, $timeout = 5000, $backgroundColor = null)
{
if ($binPath == '') {
$binPath = realpath(dirname(__FILE__) . '/../../../bin/phantomjs');
}
$this->binPath = $binPath;
$this->width = $width;
$this->height = $height;
$this->quality = $quality;
$this->backgroundColor = $backgroundColor;
$this->timeout = $timeout;
return $this;
}