public function __construct($url = null)
{
if ($url) {
$this->setUrl($url);
}
$this->binPath = realpath(implode(DIRECTORY_SEPARATOR, array(dirname(__FILE__), '..', 'bin'))) . DIRECTORY_SEPARATOR;
$this->templatePath = realpath(implode(DIRECTORY_SEPARATOR, array(dirname(__FILE__), '..', 'templates'))) . DIRECTORY_SEPARATOR;
$this->jobs = new Jobs();
$this->output = new Output();
$this->setImageType(Types\Jpg::FORMAT);
}