def METHOD_NAME(self):
    """Only keep files that are images, or that are named 'gcp_list.txt'"""
    _, file_extension = path.splitext(self.name)
    return file_extension.lower() in VALID_IMAGE_EXTENSIONS or self.name == 'gcp_list.txt'