     }
 
     func imagePickerControllerDidCancel(_ picker: UIImagePickerController) {
-        HUD.hide()
 
         picker.dismiss(animated: true, completion: {
             self.dismiss(animated: true, completion: nil)

        if self.picker != nil {
            return
        }
        HUD.show(.progress)
        let picker = UIImagePickerController()
        self.picker = picker
        picker.allowsEditing = false
        picker.sourceType = .photoLibrary
        picker.modalPresentationStyle = .fullScreen
        picker.delegate = self
        self.present(picker, animated: true, completion: nil)
    }
    
    func shootPhoto() {

{
    
    func imageCropViewControllerDidCancelCrop(controller: HHImageCropViewController) {
        controller.dismiss(animated: true, completion: {
            self.dismiss(animated: true, completion: nil)
        })
    }
    
    func imageCropViewController(controller: HHImageCropViewController, didCropImage croppedImage: UIImage?, usingCropRect cropRect: CGRect) {
