                     (imageData: NSData?, error: NSError?) -> Void in
                     if let imageData = imageData {
                         self.userProfileImageView.image = UIImage(data:imageData)
+                        self.userProfileImageView.layer.cornerRadius = self.userProfileImageView.frame.size.width / 2
+                        self.userProfileImageView.clipsToBounds = true
                     }
                 }
             }

    
    func imagePickerController(picker: UIImagePickerController,
         didFinishPickingMediaWithInfo info: [String : AnyObject]) {
        // Get the image captured by the UIImagePickerController
        let editedImage = info[UIImagePickerControllerEditedImage] as! UIImage
        
        // Do something with the images (based on your use case)
        userProfileImageView.image = editedImage
        
        let newSize = CGSize(width: 500, height: 500)

            user!.saveInBackground()
         }
        
        dismissViewControllerAnimated(true, completion: nil)
    }

