Adding css class to image

I need to add specific css class to image which is also link to external page. I can’t find any “customization” in UI which allows me to do this. Is that possible any other way than creating html snippet?

html snippet is not very convenient for this because I also need to upload image
somehow to server. Ready made /image uploads image to server.

Thanks!

Do you mean to say that wrapping the /image with HTML cards isn’t good for you?

What I do is place an HTML card before the image:

<div class=“custom”>

And then place an HTML card after the image:

</div>

Then I place the needed CSS where appropriate — the theme, or code injection.

.custom img {
    max-width: 300px
}

hmm, not exactly what am I looking for.
I need to add class to image/a-tag directly so then my tracking pixel can monitor it. But I find out workaround for my case, I was able to set another class to my pixel config instead.