@staticmethod
def get_db_attributes(tag):
    """
        Given a tag that we've identified as an image embed (because it has a
        data-embedtype="image" attribute), return a dict of the attributes we should
        have on the resulting <embed> element.
        """
    return {'id': tag['data-id'], 'format': tag['data-format'], 'alt': tag[
        'data-alt']}
