     
     required init?(coder aDecoder: NSCoder) {
         super.init(coder: aDecoder)
+        configure()
+    }
+    
+    override init(frame: CGRect) {
+        super.init(frame: frame)
+        configure()
+    }
+    
+    func configure() {
         makeRound()
-    }
-
+        
+        circlePathLayer.frame = bounds
+        circlePathLayer.lineWidth = 2.0
+        circlePathLayer.fillColor = UIColor.clearColor().CGColor
+        circlePathLayer.strokeColor = UIColor.blackColor().CGColor
+        layer.addSublayer(circlePathLayer)
+    }    
 }
import QuartzCore

class RoundedCornerView: UIView {

    var cornerRadius:CGFloat {
        set (radius) {

        super.init(coder: aDecoder)
        self.cornerRadius = 3.0
    }
}

class RoundImageView: UIImageView {
    
    let circlePathLayer = CAShapeLayer()

    var borderColor:UIColor = UIColor.blackColor() {
        didSet {
            layer.borderColor = borderColor.CGColor
        }
    }
    
    func makeRound() {
        let minDimension:CGFloat = min(self.bounds.width, self.bounds.height)
