def d8n_get_all_images_topic_bag(bag):
    """ 
        Returns the (name, type) of all topics that look like images. 
    """
    tat = bag.get_type_and_topic_info()
    consider_images = [
        'sensor_msgs/Image',
        'sensor_msgs/CompressedImage',
    ]
    all_types = set()
    found = []
    topics = tat.topics
    for t,v in topics.items():
        msg_type = v.msg_type
        all_types.add(msg_type)
        _message_count = v.message_count
        if msg_type in consider_images:

            # quick fix: ignore image_raw if we have image_compressed version
            if 'raw' in t:
                other = t.replace('raw', 'compressed')

                if other in topics:
                    continue
            found.append((t,msg_type))
    return found