@classmethod
def image_index(cls, filename):
    """Find a name in the global image list. Return index, or None."""
    for i, img in enumerate(cls.g_image_list):
        if img.filename == filename:
            return i
    return None
