Added a functionality : takeScreenshot of a page