 
             } else {
 //                messageImageViewWidthConstrint.constant = messageImagePreferredHeight * aspectRatio
+
+                let width = messageImagePreferredHeight * aspectRatio
+
+                messageImageView.frame = CGRect(x: CGRectGetMaxX(avatarImageView.frame) + 5, y: 0, width: width, height: bounds.height)
+
 
                 ImageCache.sharedInstance.imageOfMessage(message, withSize: CGSize(width: messageImagePreferredHeight * aspectRatio, height: messageImagePreferredHeight), tailDirection: .Left, completion: { [weak self] progress, image in
 

    typealias MediaTapAction = () -> Void
    var mediaTapAction: MediaTapAction?

    override func awakeFromNib() {
        super.awakeFromNib()

//        loadingProgressViewCenterXConstraint.constant = YepConfig.ChatCell.centerXOffset


            if aspectRatio >= 1 {
//                messageImageViewWidthConstrint.constant = messageImagePreferredWidth

                let width = messageImagePreferredWidth

                messageImageView.frame = CGRect(x: CGRectGetMaxX(avatarImageView.frame) + 5, y: 0, width: width, height: bounds.height)


                ImageCache.sharedInstance.imageOfMessage(message, withSize: CGSize(width: messageImagePreferredWidth, height: ceil(messageImagePreferredWidth / aspectRatio)), tailDirection: .Left, completion: { [weak self] progress, image in

                    dispatch_async(dispatch_get_main_queue()) {
