          mask_type: str
              The type of mask to overlay onto the face
          """
          logger.debug("Toggling mask annotations to: %s. mask_type: %s", state, mask_type)
          for (frame_idx, face_idx), det_faces in zip(
                  self._objects.visible_grid[:2].transpose(1, 2, 0).reshape(-1, 2),
                  self._objects.visible_faces.flatten()):
              if frame_idx == -1:
                  continue
              key = "_".join([str(frame_idx), str(face_idx)])
 
</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 </s> remove         a v2.0 or less alignments file as later versions no longer store the face hash (unrequired)
 </s> add         a v2.0 or less alignments file as later versions no longer store the face hash (not
        required) </s> remove         if view_mode == self._current_view_mode:
 </s> add         if view_mode == self._current_view_mode and (
                self._canvas.active_editor.zoomed_centering == self._zoomed_centering):
        for (frame_idx, face_idx), det_face in zip(
          mask_type: str
              The type of mask to overlay onto the face
          """
          logger.debug("Toggling mask annotations to: %s. mask_type: %s", state, mask_type)
        for (frame_idx, face_idx), det_face in zip(
                  self._objects.visible_grid[:2].transpose(1, 2, 0).reshape(-1, 2),
                  self._objects.visible_faces.flatten()):
              if frame_idx == -1:
                  continue
              key = "_".join([str(frame_idx), str(face_idx)])
keep keep keep keep replace keep keep keep keep keep
 Manual Tool - Update to support masks with different centering 
tools/manual/faceviewer/viewport.py