              padding = int(48/256*size)
              mat = mat * (size - 2 * padding)
              mat[:,2] += padding
  
          new_face = self.get_new_face(image,mat,size)
  
          image_mask = self.get_image_mask( image, new_face, face_detected.landmarks_as_xy(), mat, image_size )
  
          return self.apply_new_face(image, new_face, image_mask, mat, image_size, size)
  
 
</s> remove             mat[:,2] += padding
 </s> add             mat[:, 2] += padding
 </s> remove         image_mask = self.get_image_mask( image, new_face, face_detected.landmarks_as_xy(), mat, image_size )
 </s> add         image_mask = self.get_image_mask(image,
                                         new_face,
                                         face_detected.landmarks_as_xy,
                                         mat,
                                         image_size)
 </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)

        new_face = self.get_new_face(image, mat, size)

              padding = int(48/256*size)
              mat = mat * (size - 2 * padding)
              mat[:,2] += padding
  
        new_face = self.get_new_face(image, mat, size)
  
          image_mask = self.get_image_mask( image, new_face, face_detected.landmarks_as_xy(), mat, image_size )
  
          return self.apply_new_face(image, new_face, image_mask, mat, image_size, size)
  
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