def final_suffix_in(path, suffixes=(".png",)):
    """Simple post filter on the final suffix (including the dots)."""
    if path.is_dir():
        return False
    final_suffix = "" if not path.suffixes else path.suffixes[-1].lower()
    return final_suffix in suffixes