def check_subset(list1, list2):
    """Check that all images in the first list are also present in the second."""

    set2 = set()
    for val in list2:
        set2.add(val)

    for val in list1:
        if val not in set2:
            print(("Missing image " + str(val)))
            return False

    return True