Add screenshotOfVisibleContent method