         imagePicker.sourceType = sourceType
         imagePicker.allowsEditing = true
         self.presentViewController(imagePicker, animated: true, completion: nil)
-    }
-    
-    func setAccountImage(newImage:UIImage) {
-        
-        // update the view with the new image
-        avatarImageView.image = newImage
-        avatarImageView.contentMode = .ScaleAspectFill
-        avatarImageView.layer.cornerRadius = 100
-        avatarImageView.layer.borderWidth = 2
-        avatarImageView.layer.borderColor = UIColor.darkGrayColor().CGColor
-        avatarImageView.clipsToBounds = true
-        avatarImageView.backgroundColor = UIColor.blackColor()
-        
-        // save the new image to disk
-        if let account = _account {
-            account.saveImage(newImage)
-        }
     }
     
     /*! The value changed on the Default Donation segmented control. */

                completionHandler(success:false, error:error, accountData: account)
            }
        }
//        
//
//        
//
//        
//        return account
//        
//        
//        // persist to core data on disk
//        if let account = account {
//            let newAccount = KivaAccount.init(dictionary: account, context: sharedContext)
//            CoreDataStackManager.sharedInstance().saveContext()
//            print("new account: %@", account)
//        }
    }
    
    /*! Upload account data to Kiva.org */

                        self.kivaAPI!.kivaOAuthGetUserBalance(){ success, error, balance in
                            if success {
                                if let balance = balance {
                                    account[KivaAccount.InitKeys.balance] = balance
                                }
                                
