         }
         
         self.photoImageView.image = selectedImage
+        image = selectedImage
+        
         doneButton.isEnabled = true
         dismiss(animated: true, completion: nil)
     }
-
+    
+    
+    
 }

        present(imagePickerController, animated: true, completion: nil)
    }
    
    func imagePickerControllerDidCancel(_ picker: UIImagePickerController) {
        dismiss(animated: true, completion: nil)
    }

import os.log

class UploadPhotoViewController: UIViewController , UITextFieldDelegate, UIImagePickerControllerDelegate, UINavigationControllerDelegate {
    
    //MARK: Properties
    
    @IBOutlet weak var captionTextField: UITextField!
