     weak var imageView:UIImageView!
     weak var layoutHeight:NSLayoutConstraint!
     weak var layoutImageLeft:NSLayoutConstraint!
+    weak var layoutBorderHeight:NSLayoutConstraint!
     let maxHeight:CGFloat
     let kMinHeight:CGFloat = 3
     private let kMaxHeightPercent:CGFloat = 0.8

            attribute:NSLayoutAttribute.Left,
            multiplier:1,
            constant:0)
        
        addConstraint(layoutImageLeft)
        
        NSNotificationCenter.defaultCenter().addObserver(
            self,

        if imageView.image == nil
        {
            layoutHeight.constant = kMinHeight
            layoutBorderHeight.constant = kBorderHeight
        }
        else
        {
