Add support for headless rendering