I want to use PhantomJS to generate the reference images. There's the beginning of a test harness under src/reftest.