 
             let openCameraRoll: ProposerAction = { [weak self] in
                 if UIImagePickerController.isSourceTypeAvailable(UIImagePickerControllerSourceType.PhotoLibrary){
-                    if let weakSelf = self {
-                        weakSelf.imagePicker.delegate = weakSelf
-                        weakSelf.imagePicker.sourceType = .PhotoLibrary
-                        weakSelf.imagePicker.mediaTypes = [kUTTypeImage, kUTTypeMovie]
-                        weakSelf.imagePicker.videoQuality = .TypeMedium
-                        weakSelf.imagePicker.allowsEditing = false
-                        
-                        weakSelf.presentViewController(weakSelf.imagePicker, animated: true, completion: nil)
+                    if let strongSelf = self {
+                        strongSelf.imagePicker.sourceType = .PhotoLibrary
+                        strongSelf.presentViewController(strongSelf.imagePicker, animated: true, completion: nil)
                     }
                 }
             }


    let messageImagePreferredAspectRatio: CGFloat = 4.0 / 3.0
    
    let imagePicker = UIImagePickerController()

    let chatSectionDateCellIdentifier = "ChatSectionDateCell"
    let chatStateCellIdentifier = "ChatStateCell"


            let openCamera: ProposerAction = { [weak self] in
                if UIImagePickerController.isSourceTypeAvailable(UIImagePickerControllerSourceType.Camera) {
                    if let strongSelf = self {
                        strongSelf.imagePicker.sourceType = .Camera
                        strongSelf.presentViewController(strongSelf.imagePicker, animated: true, completion: nil)
                    }
                }
            }
