Exposes get_screenshot_as_file method.