         context.draw(cgImage, in: CGRect(origin: CGPoint.zero, size: size))
 
         #if os(macOS)
-            return context.makeImage().flatMap { Image(cgImage: $0, size: kf.size) }
+            return context.makeImage().flatMap { KFCrossPlatformImage(cgImage: $0, size: kf.size) }
         #else
-            return context.makeImage().flatMap { Image(cgImage: $0) }
+            return context.makeImage().flatMap { KFCrossPlatformImage(cgImage: $0) }
         #endif
     }
 }

            XCTAssertNotNil(decodedWebP, fileName)
            
            let originalData = Data(fileName: fileName)
            let originalImage = Image(data: originalData)!
            XCTAssertTrue(decodedWebP!.renderEqual(to: originalImage), fileName)
        }
    }

    
    func testEncodingPerformance() {
        let s = WebPSerializer.default
        let images = fileNames.compactMap { fileName -> KFCrossPlatformImage? in
            let data = Data(fileName: fileName)
            return DefaultImageProcessor.default.process(item: .data(data), options: [])
        }
