(CSS) How to Style the First Image in a Note?

The person in this thread claimed they achieved it with CSS. It does look a lot like the plug-in, though.

I’ve used the banner plug-in before, but I wanted to see if there was a solution that would automatically make the first image in the note a banner.