         
         if let color = blendColor {
             CGContextSetFillColorWithColor(bitmapContext, color.CGColor)
-            CGContextSetBlendMode(bitmapContext, CGBlendMode.PlusLighter)
+            CGContextSetBlendMode(bitmapContext, blendMode)
             CGContextFillRect(bitmapContext, CGRect(x: 0, y: 0, width: width, height: height))
         }
         

}

public extension UIImage {
    func blurredImage(radius: CGFloat, iterations: Int, ratio: CGFloat, blendColor: UIColor?) -> UIImage! {
        if floorf(Float(size.width)) * floorf(Float(size.height)) <= 0.0 || radius <= 0 {
            return self
        }

    
    /// Blend color.
    public var blendColor: UIColor?

	/// Blend mode.
    public var blendMode: CGBlendMode = CGBlendMode.PlusLighter

    /// Default is 3.
    public var iterations: Int = 3
    
