def is_image_file(filename):
    return any((filename.endswith(extension) for extension in IMG_EXTENSIONS))
def is_image_file(filename):
    return any((filename.endswith(extension) for extension in IMG_EXTENSIONS))