PhantomJS script to generate png