It's not OK in the sense that it is a spec violation, at least. Some clients have images that load in-line on mouseover or click, which isn't a spec violation. You could do that with HTML.
Honestly asking because I'm curious.
However for external images available over http/s, I think that should be up to the client.