 
         if let image = info[UIImagePickerControllerEditedImage] as? UIImage {
             
+            self.shouldDeleteImage = false
+
             let urls = NSFileManager.defaultManager().URLsForDirectory(.DocumentDirectory, inDomains: .UserDomainMask)
             let url = urls[urls.count-1].URLByAppendingPathComponent("temp.jpg")
             UIImageJPEGRepresentation(image, 1)?.writeToURL(url, atomically: true)

                print("Error for child: \(error)")
            }
        })

        self.delegate?.editBabyViewController(self, didFinishWithBaby: self.baby)
    }
    

        self.baby?.familyName = self.familyNameTextField.text
        self.baby?.sex = self.sexSegmentedControl.selectedSegmentIndex
        
        if self.shouldDeleteImage { // Delete both temp & original images
            let urls = NSFileManager.defaultManager().URLsForDirectory(.DocumentDirectory, inDomains: .UserDomainMask)
            let url = urls[urls.count-1].URLByAppendingPathComponent((self.baby?.imageName)!)
            let tempUrl = urls[urls.count-1].URLByAppendingPathComponent("temp.jpg")

            do {
                try NSFileManager.defaultManager().removeItemAtURL(url)
                try NSFileManager.defaultManager().removeItemAtURL(tempUrl)
            } catch {
                print(error)
            }
        } else { // If there is a temp image, delete "baby.imageName" and rename temp to "baby.imageName"
            let urls = NSFileManager.defaultManager().URLsForDirectory(.DocumentDirectory, inDomains: .UserDomainMask)
            let url = urls[urls.count-1].URLByAppendingPathComponent((self.baby?.imageName)!)
            do {
                try NSFileManager.defaultManager().removeItemAtURL(url)
            } catch {
                print(error)
            }
            
            let tempUrl = urls[urls.count-1].URLByAppendingPathComponent("temp.jpg")
            do {
                try NSFileManager.defaultManager().moveItemAtURL(tempUrl, toURL: url)
            } catch {
                print(error)
            }
        }
        
        temporaryMoc?.performBlock({
            do {
                try self.temporaryMoc?.save()
