         let imageFile = PFFile(name:"image.jpeg", data:imageData)
 
         var userPhoto = PFObject(className:"UserPhoto")
-        userPhoto["userName"] = PFUser.currentUser()!.username!
+        userPhoto["creator"] = PFUser.currentUser()!
+        if let cliqGroup = cliqGroup {
+            userPhoto["cliqGroup"] = cliqGroup
+        }
         userPhoto["imageFile"] = imageFile
         userPhoto.saveInBackground()
         self.presentedViewController?.dismissViewControllerAnimated(true, completion: nil)

    }

    var placePicker: GMSPlacePicker?

    @IBAction func startCliq(sender: UIBarButtonItem) {
        PFGeoPoint.geoPointForCurrentLocationInBackground { (geopoint, error) -> Void in

                    cliq["name"] = place.name
                    cliq["address"] = "\n".join(place.formattedAddress.componentsSeparatedByString(", "))
                    cliq.saveInBackground()
                    self.cliqGroup = cliq
                } else {
                    println("No place selected")
                    println("")
