                  if not log_once:
                      logger.warning("Legacy faces discovered. These faces will be updated")
                      log_once = True
                  metadata = update_legacy_png_header(filename, self._alignments)
                  if not metadata:
                      # Face not found
                      self._counts["skip"] += 1
                      logger.warning("Legacy face not found in alignments file. This face has not "
                                     "been updated: '%s'", filename)
                      continue
  
 
</s> remove                 logger.warning("Skipping Face not found in alignments file. skipping: '%s'",
                               filename)
 </s> add                 logger.warning("Skipping Face not found in alignments file: '%s'", filename) </s> remove                                    centering="face",
 </s> add                                    centering=mask.stored_centering, </s> remove         retval = "_{}".format(dict_key) if dict_key != "stored_size" else dict_key
 </s> add         retval = "_{}".format(dict_key) if not dict_key.startswith("stored") else dict_key </s> remove             ``affine_matrix``, ``interpolator``, ``stored_size``
 </s> add             ``affine_matrix``, ``interpolator``, ``stored_size``, ``stored_centering`` </s> remove     def set_sub_crop(self, offset):
 </s> add     def set_sub_crop(self, offset, centering):
                if not metadata:  # Face not found
                  if not log_once:
                      logger.warning("Legacy faces discovered. These faces will be updated")
                      log_once = True
                  metadata = update_legacy_png_header(filename, self._alignments)
                if not metadata:  # Face not found
                if not metadata:  # Face not found
                      self._counts["skip"] += 1
                      logger.warning("Legacy face not found in alignments file. This face has not "
                                     "been updated: '%s'", filename)
                      continue
  
keep keep keep keep replace replace keep keep keep keep keep
 Add support for different mask centering types 
tools/mask/mask.py