     
     public var delegate: RippleViewDelegate?
     public var size: CGSize = RippleView.defaultSize
+    public var contentInset: CGFloat = 0
     
     private var coreLayer = CAShapeLayer()
     

    }()
    
    public lazy var imageView: UIImageView = {
        let imageView = UIImageView(frame: self.bounds)
        imageView.contentMode = .Center
        return imageView
    }()

    
    public override func layoutSubviews() {
        super.layoutSubviews()
        coreLayer.frame = contentFrame
        coreLayer.path = UIBezierPath(ovalInRect: coreLayer.bounds).CGPath
        ringLayer.frame = contentFrame
        ringLayer.path = UIBezierPath(ovalInRect: ringLayer.bounds).CGPath
        imageView.frame = contentFrame
    }
    
    private var contentFrame: CGRect {
        return CGRectMake(contentInset, contentInset, bounds.width - contentInset * 2, bounds.height - contentInset * 2)
    }
    
    private lazy var ringLayer: CAShapeLayer = {
