         super.init(coder: aDecoder)
 
         commonInit(UIView(), contentSize: nil)
-    }
-
-    private func commonInit(contentView: UIView, contentSize: CGSize? = nil) {
-        self.opaque = true
-        self.alpha = 1
-        self.autoresizingMask = [.FlexibleWidth, .FlexibleHeight]
-        self.backgroundImage = UIImageView(frame: self.bounds)
-        self.backgroundImage.autoresizingMask = [.FlexibleWidth, .FlexibleHeight]
-        self.addSubview(backgroundImage)
-
-        self.contentView = contentView
-        self.contentSize = contentSize
-    }
-
-    private func setupContentView() {
-        contentView.translatesAutoresizingMaskIntoConstraints = false
-        self.addSubview(contentView)
-        let viewDict = ["cV":contentView, "view":self]
-        let cSize = contentSize ?? contentView.frame.size
-        let metrics = ["cVHeight": cSize.height, "cVWidth": cSize.width]
-        [NSLayoutConstraint.constraintsWithVisualFormat("V:[cV(cVHeight)]", options: [], metrics: metrics, views: viewDict),
-            NSLayoutConstraint.constraintsWithVisualFormat("H:[cV(cVWidth)]", options: [], metrics: metrics, views: viewDict),
-            NSLayoutConstraint.constraintsWithVisualFormat("H:[view]-(<=1)-[cV]", options: NSLayoutFormatOptions.AlignAllCenterY, metrics: nil, views: viewDict),
-            NSLayoutConstraint.constraintsWithVisualFormat("V:[view]-(<=1)-[cV]", options: NSLayoutFormatOptions.AlignAllCenterX, metrics: nil, views: viewDict)
-            ].forEach { NSLayoutConstraint.activateConstraints($0) }
     }
 
     public func show() {

        self.removeFromSuperview()
    }

    private func snapshot() -> UIImage? {
        let appDelegate = UIApplication.sharedApplication().delegate
        guard let window = appDelegate?.window else { return nil }


    public var contentSize : CGSize?
    public var blurEffectStyle: UIBlurEffectStyle = .Dark
    public var identifier: String?

    private var contentView : UIView!
    private var backgroundImage : UIImageView!
