          self.h = d_rect.bottom() - d_rect.top()
          if image.any():
              self.image_to_face(image)
  
      def image_to_face(self, image):
          """ Crop an image around bounding box to the face
              and capture it's dimensions """
          logger.trace("Cropping face from image")
          self.image = image[self.y: self.y + self.h,
 
</s> remove         return d_rectangle(left, top, right, bottom)
 </s> add         retval = d_rectangle(left, top, right, bottom)
        logger.trace("Returning: %s", retval)
        return retval
        logger.trace("Created from dlib_rectangle: (x: %s, w: %s, y: %s. h: %s)",
                     self.x, self.w, self.y, self.h)
          self.h = d_rect.bottom() - d_rect.top()
          if image.any():
              self.image_to_face(image)
        logger.trace("Created from dlib_rectangle: (x: %s, w: %s, y: %s. h: %s)",
                     self.x, self.w, self.y, self.h)
  
      def image_to_face(self, image):
          """ Crop an image around bounding box to the face
              and capture it's dimensions """
          logger.trace("Cropping face from image")
          self.image = image[self.y: self.y + self.h,
keep keep add keep 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 
lib/faces_detect.py