Capture screenshots using phantomjs