     /// - Note: This method only works for CG-based image.
     public func overlaying(with color: Color, fraction: CGFloat) -> Image {
         
-        guard let cgImage = cgImage?.fixed else {
+        guard let cgImage = cgImage else {
             assertionFailure("[Kingfisher] Overlaying only works for CG-based image.")
             return base
         }

    /// - Note: This method only works for CG-based image.
    public func resize(to size: CGSize) -> Image {
        
        guard let cgImage = cgImage?.fixed else {
            assertionFailure("[Kingfisher] Resize only works for CG-based image.")
            return base
        }

    }
}

extension CGBitmapInfo {
    var fixed: CGBitmapInfo {
        var fixed = self
