def METHOD_NAME(self, src, alt="", title=None):
    css_classes = ""
    title = title or alt
    if title in IMAGE_CSS_CLASSES:
        css_classes = IMAGE_CSS_CLASSES[title]
    image_tag = f'<img src="{escape_html(src)}" alt="{escape_html(title)}">'
    caption = f"<figcaption>{escape_html(title)}</figcaption>" if title else ""
    return f'<figure class="{css_classes}">{image_tag}{caption}</figure>'