Added function to capture a webpage screen