A small RichText panel class that matches the word "barrel" or "barrels" and displays an image. It sets the image path to textures/ui/barrel3.png and hides the matched text.
[RichTextPanel( @"\b[Bb]arrels?\b" )]
public class RichTextBarrel : RichTextBase
{
public override string ImagePath => "textures/ui/barrel3.png";
public override bool HideText => true;
}