Speed up test_get_screenshot()