PhantomJS script to convert web pages to screenshots