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

        return dismatchedLength <= Int(tolerancePercent * Double(length1))
    }

    func rendered() -> Image? {
        // Ignore non CG images
        guard let cgImage = cgImage else {
            return nil

}

// Copied from Kingfisher project
extension KFCrossPlatformImage {
    func renderEqual(to image: KFCrossPlatformImage, withinTolerance tolerance: UInt8 = 3, tolerancePercent: Double = 0) -> Bool {

        guard size == image.size else { return false }
        guard let imageData1 = pngData(), let imageData2 = image.pngData() else { return false }
        guard let unifiedImage1 = KFCrossPlatformImage(data: imageData1), let unifiedImage2 = KFCrossPlatformImage(data: imageData2) else { return false }

        guard let rendered1 = unifiedImage1.rendered(), let rendered2 = unifiedImage2.rendered() else { return false }
        guard let data1 = rendered1.cgImage?.dataProvider?.data, let data2 = rendered2.cgImage?.dataProvider?.data else { return false }
