Without using any JavaScript at all? I am afraid that this is not possible, at least on the client side.
There are NOFRAME and NOSCRIPT tags in HTML, but there are no equivalent tags for images whose contents will only be displayed if the images were disabled or not supported.
Then for your A tags wrapping the image, perhaps you can make the A tag, and not its image, responsible for displaying a tooltip and handling events.
In addition, to ensure that your layout does not break if the images do not load, you can give tag A the normal height and width of the image. The same could be used for the <input type='image'> tags by wrapping them in a span tag and specifying the correct attribute values.
For instance:
<a href="..." style="height: 25px"; width: 80px;" title="Some tooltip text"> <img...> </a> <span onclick="some action" style="height: 30px"; width: 70px;" title="Some other tooltip text"> <input type='image'...> </span>
source share