Change Window.capture return type from Image to Surface.