 //
 
 import UIKit
+import Parse
 
 class SettingsViewController: UIViewController, UIImagePickerControllerDelegate, UINavigationControllerDelegate {
     

        super.viewDidLoad()
        
        imgPicker.delegate = self
        imgPicker.allowsEditing = true
        
        usernameTextField.text = currentUser?.username
        emailTextField.text = currentUser?.email
    }
    
    @IBAction func didTapProfileImageView(_ sender: Any) {

        let image = info[UIImagePickerControllerOriginalImage] as! UIImage
        
        // Do something with the images (based on your use case)
        let imageData = UIImagePNGRepresentation(image)
        let imageFile: PFFile? = PFFile(data: imageData!)!
        currentUser?.setObject(imageFile!, forKey: "profile_image")
        self.profileImage.image = image
        
        // Dismiss UIImagePickerController to go back to your original view controller
