<img> tags can’t be wrapped in this way. What you will get is two <img>, one after the other.
The only way I can think of to make this work would be to use a different wrapping element, like a <div>.
<div class="green">![[Image.png]]</div>
And then update your CSS:
div.green img {
filter:hue-rotate(90);
}