Thread:Project:Support desk/Class option for images (2)/reply

Microformats are over-rated ;)

you'd have to write an extension. See manual:Hooks/ImageBeforeProduceHTML and more generally how the code in the file includes/Linker.php works.