def is_image_file(filename):
    """ Judge whether is an image file.
        Include png, jpg, jpeg, tif, tiff
    """
    return any(filename.endswith(extension) for extension in [".png", ".jpg", ".jpeg", ".tif", ".tiff"])