When you add a tag to an image, it is also added as a css class so that you can apply special styling. I use this to make sure dark images are still visible when on my dark theme. These classes are added to the image block, but I've noticed that they do not get added when the image is used as a portrait (ie the kind you add via the sidebar) or when it's on its own image page.