Fixing error using wkhtmltoimage