 extension DCIContext {
     
     @available(OSX 10.14, iOS 12.0, tvOS 12.0, *)
+    public func insertingIntermediate() {
+        current.image = current.image.insertingIntermediate()
+    }
+    
+    @available(OSX 10.14, iOS 12.0, tvOS 12.0, *)
     public func insertingIntermediate(cache: Bool) {
-        self.image = self.image.insertingIntermediate(cache: cache)
+        current.image = current.image.insertingIntermediate(cache: cache)
     }
     
     private var isShadow: Bool {

    }
    
    public func setClip(image: CIImage, transform: SDTransform) {
        self.clip = image.transformed(by: CGAffineTransform(transform * self.transform)).composited(over: CIImage(color: .black)).cropped(to: bound)
    }
}


        
        var source = source.cropped(to: bound)
        
        if let clip = current.clip {
            source = source.applyingFilter("CIBlendWithMask", parameters: ["inputBackgroundImage": CIImage.empty(), "inputMaskImage": clip])
            source = source.cropped(to: bound)
        }
        
        if let shadow = create_shadow(source) {
            current._blend(shadow)
        }
        
        current._blend(source)
    }
    
    private func _blend(_ source: CIImage) {
