Use PhantomJS to generate static images and PDFs.