          self.input_scale = frame.input_scale
          self.detected_faces = detected_faces
          self.keras = keras_model
  
          self.bounding_box = None
          self.landmarks = self.process_landmarks()
  
      @staticmethod
      def transform(point, center, scale, resolution):
          """ Transform Image """
 
</s> remove         self.frame = frame.images[0]
        self.input_scale = frame.input_scale
 </s> add         self.image = image </s> remove     def __init__(self, frame, detected_faces, keras_model, verbose):
 </s> add     def __init__(self, image, detected_faces, keras_model, verbose): </s> remove     def detect_faces(self, images):
        """ Detect faces in images """
 </s> add     def detect_faces(self, image):
        """ Detect faces in rgb image """ </s> remove         for current_image in images:
            detected_faces = detect_face(current_image, **self.kwargs)
            self.detected_faces = [dlib.rectangle(int(face[0]), int(face[1]),
                                                  int(face[2]), int(face[3]))
                                   for face in detected_faces]
            if self.detected_faces:
                break
 </s> add         detected_faces = detect_face(image, **self.kwargs)
        self.detected_faces = [dlib.rectangle(int(face[0]), int(face[1]),
                                              int(face[2]), int(face[3]))
                               for face in detected_faces] </s> remove         self.landmarks = Align(frame=self.frame,
                               detected_faces=self.detector.detected_faces,
 </s> add         self.landmarks = Align(image=self.frame.image_rgb,
                               detected_faces=self.bounding_boxes,
          self.input_scale = frame.input_scale
          self.detected_faces = detected_faces
          self.keras = keras_model
  

          self.landmarks = self.process_landmarks()
  
      @staticmethod
      def transform(point, center, scale, resolution):
          """ Transform Image """
keep keep keep keep replace keep keep keep keep keep
 DLib scaling amends (#461)

* Scaling area fix and rework of frames and bounding boxes

* Update DLib scaling and initialization 
lib/face_alignment/extractor.py