 extension HHAvatarPicker: UIImagePickerControllerDelegate, UINavigationControllerDelegate
 {
     func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : Any]) {
-        HUD.hide()
         
         if let chosenImage = self.fixImageOrientation(src: info[UIImagePickerControllerOriginalImage] as? UIImage) {
             picker.dismiss(animated:true, completion: {

    }

    func imagePickerControllerDidCancel(_ picker: UIImagePickerController) {
        HUD.hide()

        picker.dismiss(animated: true, completion: {
            self.dismiss(animated: true, completion: nil)

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

    }
    
    func shootPhoto() {
