          else:
              det_face = self._det_faces.current_faces[frame_idx][face_idx]
              face = AlignedFace(det_face.landmarks_xy,
                                 image=self._globals.current_frame["image"],
                                 centering="face",
                                 size=size).face
          logger.trace("face shape: %s", face.shape)
          return face[..., 2::-1]
  
      def _update_tk_frame(self):
 
</s> remove         for (frame_idx, face_idx), det_faces in zip(
 </s> add         for (frame_idx, face_idx), det_face in zip( </s> remove             mask = None if state == "hidden" else det_faces.mask.get(mask_type, None)
            mask = mask if mask is None else mask.mask.squeeze()
 </s> add             mask = None if state == "hidden" else self._obtain_mask(det_face, mask_type) </s> remove         mask = face.mask.get(self._canvas.selected_mask, None) if get_mask else None
        mask = mask if mask is None else mask.mask.squeeze()
 </s> add         mask = self._obtain_mask(face, self._canvas.selected_mask) if get_mask else None </s> remove         scale = self._internal_size / mask.mask.shape[0]
 </s> add         scale = self._internal_size / mask.stored_size
                               centering=self._zoomed_centering,
          else:
              det_face = self._det_faces.current_faces[frame_idx][face_idx]
              face = AlignedFace(det_face.landmarks_xy,
                                 image=self._globals.current_frame["image"],
                               centering=self._zoomed_centering,
                                 size=size).face
          logger.trace("face shape: %s", face.shape)
          return face[..., 2::-1]
  
      def _update_tk_frame(self):
keep keep keep keep replace keep keep keep keep keep
 Manual Tool - Update to support masks with different centering 
tools/manual/frameviewer/control.py