     @IBOutlet weak var choosePhotoButton: MessageTypeButton!
     @IBOutlet weak var takePhotoButton: MessageTypeButton!
     @IBOutlet weak var addLocationButton: MessageTypeButton!
-
-
-    lazy var mediaPreviewView: MediaPreviewView = {
-        let view = MediaPreviewView()
-        return view
-        }()
 
 
     var waverView: YepWaverView!


                    cell.configureWithMessage(message, messageImagePreferredWidth: messageImagePreferredWidth, messageImagePreferredHeight: messageImagePreferredHeight, messageImagePreferredAspectRatio: messageImagePreferredAspectRatio, mediaTapAction: { [unowned self] in

                        self.performSegueWithIdentifier("showMessageMedia", sender: message)

                    }, collectionView: collectionView, indexPath: indexPath)



                    cell.configureWithMessage(message, messageImagePreferredWidth: messageImagePreferredWidth, messageImagePreferredHeight: messageImagePreferredHeight, messageImagePreferredAspectRatio: messageImagePreferredAspectRatio, mediaTapAction: { [unowned self] in

                        //self.performSegueWithIdentifier("showMessageMedia", sender: message)

                        let mediaPreviewView = MediaPreviewView()
                        mediaPreviewView.showMessage(message, inView: self.view.window)

                    }, collectionView: collectionView, indexPath: indexPath)
                    
