added support for headless wkhtmltopdf