def image_check(name: str):
    """
    A function that checks the string end for image file suffix.

    Args:
        name (str): the string to test the suffix for

    Returns:
        True: if the suffix suffix contains image extension
        False; if the string suffix does not contain image extension
    """
    name = name.lower()
    checks = [".jpg", ".png", ".jpeg", ".gif", ".webp"]
    for i in checks:
        if name.endswith(i):
            return True
    return False