def METHOD_NAME(self, file_path: str, container: dict[str, Any]) -> Image | None:
    image_name = container.get("image")
    if image_name and isinstance(image_name, str):
        start_line = container.get("__startline__", 0)
        end_line = container.get("__endline__", 0)
        return Image(
            file_path=file_path,
            name=image_name,
            start_line=start_line,
            end_line=end_line,
        )
    return None