Fix OutOfMemory during scaling screen capture.