     
     func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : Any]) {
         print("Info: \(info)")
+        if let newImage = info[UIImagePickerControllerOriginalImage] as? UIImage {
+            ImageView.image = newImage
+        }
+        self.dismiss(animated: true, completion: nil)
     }
     
     @IBAction func imageTapped(_ sender: Any) {

        
        let cameraAction = UIAlertAction(title: "Camera", style: .default) { (action) in
            self.presentImagePickerWith(sourceType: .camera)
        }
        
        let photoAction = UIAlertAction(title: "Photo Library", style: .default) { (action) in

class HomeViewController: UIViewController, UIImagePickerControllerDelegate, UINavigationControllerDelegate {
    
    let imagePicker = UIImagePickerController()
    
    @IBOutlet weak var ImageView: UIImageView!
    
    override func viewDidLoad() {
