          self.match_histogram = match_histogram
          self.mask_type = mask_type.lower() # Choose in 'FaceHullAndRect','FaceHull','Rect'
          self.draw_transparent = draw_transparent
  
      def patch_image( self, image, face_detected, size ):
  
          image_size = image.shape[1], image.shape[0]
  
          mat = numpy.array(get_align_mat(face_detected, size, should_align_eyes=False)).reshape(2,3)
  
 
</s> remove         self.mask_type = mask_type.lower() # Choose in 'FaceHullAndRect','FaceHull','Rect'
 </s> add         self.mask_type = mask_type.lower()  # Choose in 'FaceHullAndRect', 'FaceHull', 'Rect'
 </s> remove         mat = numpy.array(get_align_mat(face_detected, size, should_align_eyes=False)).reshape(2,3)
 </s> add         mat = numpy.array(get_align_mat(face_detected,
                                        size,
                                        should_align_eyes=False)).reshape(2, 3)
 </s> remove                 self.erosion_kernel = cv2.getStructuringElement(cv2.MORPH_ELLIPSE,(abs(erosion_kernel_size),abs(erosion_kernel_size)))
 </s> add                 self.erosion_kernel = cv2.getStructuringElement(cv2.MORPH_ELLIPSE,
                                                                (abs(erosion_kernel_size),
                                                                 abs(erosion_kernel_size)))
 </s> remove             mat[:,2] += padding
 </s> add             mat[:, 2] += padding
 </s> remove         new_face = self.get_new_face(image,mat,size)
 </s> add         new_face = self.get_new_face(image, mat, size)

    def patch_image(self, image, face_detected, size):

          self.match_histogram = match_histogram
          self.mask_type = mask_type.lower() # Choose in 'FaceHullAndRect','FaceHull','Rect'
          self.draw_transparent = draw_transparent
  
    def patch_image(self, image, face_detected, size):
  
          image_size = image.shape[1], image.shape[0]
  
          mat = numpy.array(get_align_mat(face_detected, size, should_align_eyes=False)).reshape(2,3)
  
keep keep keep keep replace keep keep keep keep keep
 Logging (#541)

* Convert prints to logger. Further logging improvements. Tidy  up

* Fix system verbosity. Allow SystemExit

* Fix reload extract bug

* Child Traceback handling

* Safer shutdown procedure

* Add shutdown event to queue manager

* landmarks_as_xy > property. GUI notes + linting. Aligner bugfix

* fix FaceFilter. Enable nFilter when no Filter is supplied

* Fix blurry face filter

* Continue on IO error. Better error handling

* Explicitly print stack trace tocrash log

* Windows Multiprocessing bugfix

* Add git info and conda version to crash log

* Windows/Anaconda mp bugfix

* Logging fixes for training 
plugins/convert/Convert_Masked.py