takeElementScreenshot function

takeElementScreenshot