              image with a mask applied, if required.
          """
          get_mask = (self._canvas.optional_annotations["mask"] or
                      (is_active and self.selected_editor == "mask"))
          mask = face.mask.get(self._canvas.selected_mask, None) if get_mask else None
          mask = mask if mask is None else mask.mask.squeeze()
          tk_face = TKFace(image, size=self.face_size, mask=mask)
          logger.trace("face: %s, tk_face: %s", face, tk_face)
          return tk_face
  
      def get_landmarks(self, frame_index, face_index, face, top_left, refresh=False):
 
</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         """ numpy.ndarray: The mask at the size of :attr:`stored_size` with any requested blurring
        and threshold amount applied."""
        dims = (self.stored_size, self.stored_size, 1)
        mask = np.frombuffer(decompress(self._mask), dtype="uint8").reshape(dims)
 </s> add         """ numpy.ndarray: The mask at the size of :attr:`stored_size` with any requested blurring,
        threshold amount and centering applied."""
        mask = self.stored_mask
        mask = self._obtain_mask(face, self._canvas.selected_mask) if get_mask else None
              image with a mask applied, if required.
          """
          get_mask = (self._canvas.optional_annotations["mask"] or
                      (is_active and self.selected_editor == "mask"))
        mask = self._obtain_mask(face, self._canvas.selected_mask) if get_mask else None
        mask = self._obtain_mask(face, self._canvas.selected_mask) if get_mask else None
          tk_face = TKFace(image, size=self.face_size, mask=mask)
          logger.trace("face: %s, tk_face: %s", face, tk_face)
          return tk_face
  
      def get_landmarks(self, frame_index, face_index, face, top_left, refresh=False):
keep keep keep keep replace replace keep keep keep keep keep
 Manual Tool - Update to support masks with different centering 
tools/manual/faceviewer/viewport.py