          if self._centering != mask_centering:
              crop_offset = reference_face.pose.offset[mask_centering] * -1
          else:
              crop_offset = np.array((0, 0))
          mask, raw_mask = self._adjustments["mask"].run(detected_face, crop_offset, predicted_mask)
          if new_face.shape[2] == 4:
              logger.trace("Combining mask with alpha channel box mask")
              new_face[:, :, -1] = np.minimum(new_face[:, :, -1], mask.squeeze())
          else:
              logger.trace("Adding mask to alpha channel")
 
</s>
        mask, raw_mask = self._adjustments["mask"].run(detected_face, crop_offset, mask_centering,
                                                       predicted_mask=predicted_mask)
          if self._centering != mask_centering:
              crop_offset = reference_face.pose.offset[mask_centering] * -1
          else:
              crop_offset = np.array((0, 0))
        mask, raw_mask = self._adjustments["mask"].run(detected_face, crop_offset, mask_centering,
                                                       predicted_mask=predicted_mask)
          if new_face.shape[2] == 4:
              logger.trace("Combining mask with alpha channel box mask")
              new_face[:, :, -1] = np.minimum(new_face[:, :, -1], mask.squeeze())
          else:
              logger.trace("Adding mask to alpha channel")
keep keep keep keep replace keep keep keep keep keep
 bugfix: lib.convert - Correctly pass mask centering to mask plugin
lib/convert.py