             
             let frontCamera = UIImagePickerControllerCameraDevice.Front
             let rearCamera = UIImagePickerControllerCameraDevice.Rear
+            
             //use the front facing camera if available
             if (UIImagePickerController.isCameraDeviceAvailable(frontCamera))
             {

        self.imageView.image = image
        picker.dismissViewControllerAnimated(true, completion: nil)
    }
    func imagePickerControllerDidCancel(picker: UIImagePickerController!) {
        picker.dismissViewControllerAnimated(true, completion: nil)
    }

    }
    
    @IBAction func sharePhoto(sender: AnyObject) {
        
        if let image = self.imageView.image {
            let activity = UIActivityViewController(activityItems: [image], applicationActivities: nil)
            
            self.presentViewController(activity, animated: true) { () -> Void in
                // we don't need to do anything
            }
