Added takeScreenshot to api