     weak var layoutImageLeft:NSLayoutConstraint!
     let maxHeight:CGFloat
     let kMinHeight:CGFloat = 5
-    private let kMaxHeightPercent:CGFloat = 0.7
+    private let kMaxHeightPercent:CGFloat = 0.8
     private let kBorderHeight:CGFloat = 1
     private let kAnimationDuration:NSTimeInterval = 0.3
     

        imageView.contentMode = controller.model.displayOption.contentMode
    }
    
    //MARK: public
    
    func displayImage(image:UIImage?)
    {
        imageView.image = image
        layoutHeight.constant = maxHeight
        
        UIView.animateWithDuration(kAnimationDuration, animations:
        { [weak self] in
            
            self?.layoutIfNeeded()
            
        })
        { [weak self] (done) in
            
            self?.controller.viewChat.input.updateStandbyMenu()
        }
    }
    
    func removeImage()
    {
        layoutHeight.constant = kMinHeight
        
        UIView.animateWithDuration(kAnimationDuration, animations:
        { [weak self] in
            
            self?.layoutIfNeeded()
            
        })
        { [weak self] (done) in
            
            self?.imageView.image = nil
            self?.controller.viewChat.input.updateStandbyMenu()
        }
    }
}
        }
        
        maxHeight = smallerSize * kMaxHeightPercent
        
        super.init(frame:CGRectZero)
        clipsToBounds = true
