     
     // If data in text fields isn't valid, give an alert
     func invalidDataAlert(message: String) {
-        var title = "Invalid Input"
+        let title = "Invalid Input"
         let alertController = UIAlertController(title: title, message: message, preferredStyle: .alert)
         let okAction = UIAlertAction(title: "Ok", style: .cancel, handler: nil)
         alertController.addAction(okAction)

        return toolbar
    }()
    
    @IBAction func selectNewImage(_ sender: Any) {
        selectImage()
    }

        }
        
    }
    
    // MARK: Keyboard functionality
    
    @objc func inputToolbarDonePressed() {
        resignFirstResponder()
