Added takeScreenShot method.