How do I use PhantomJS to generate static chart images?