     @IBOutlet weak var messageTextView: UITextView!
     @IBOutlet weak var mediaCollectionView: UICollectionView!
 
-    lazy var imagePicker: UIImagePickerController = {
-        let imagePicker = UIImagePickerController()
-        imagePicker.delegate = self
-        imagePicker.mediaTypes = [kUTTypeImage as String]
-        imagePicker.videoQuality = .TypeMedium
-        imagePicker.allowsEditing = false
-        return imagePicker
-        }()
-
     var imageAssetSet: Set<PHAsset>?
 
     var mediaImages = [UIImage]() {

    }
}

extension NewFeedViewController: UIImagePickerControllerDelegate, UINavigationControllerDelegate {

    func imagePickerController(picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : AnyObject]) {

        if let mediaType = info[UIImagePickerControllerMediaType] as? String {

            if mediaType == (kUTTypeImage as String) {

                if let image = info[UIImagePickerControllerOriginalImage] as? UIImage {

                    let imageWidth = image.size.width
                    let imageHeight = image.size.height

                    let fixedImageWidth: CGFloat
                    let fixedImageHeight: CGFloat

                    if imageWidth > imageHeight {
                        fixedImageWidth = min(imageWidth, YepConfig.Media.imageWidth)
                        fixedImageHeight = imageHeight * (fixedImageWidth / imageWidth)
                    } else {
                        fixedImageHeight = min(imageHeight, YepConfig.Media.imageHeight)
                        fixedImageWidth = imageWidth * (fixedImageHeight / imageHeight)
                    }

                    let fixedSize = CGSize(width: fixedImageWidth, height: fixedImageHeight)

                    // resize to smaller, not need fixRotation

                    if let fixedImage = image.resizeToSize(fixedSize, withInterpolationQuality: CGInterpolationQuality.Medium) {
                        mediaImages.append(fixedImage)
                    }
                }
            }
        }
        
        dismissViewControllerAnimated(true, completion: nil)
    }
}


        switch indexPath.section {

        case 0:
            proposeToAccess(.Photos, agreed: { [weak self] in
                self?.performSegueWithIdentifier("showPickPhotos", sender: nil)

