generating image using phantomjs