Similar to this, many years ago on HN there was a website shared that would convert an image into HTML. I used it to generate the 404 image on my personal website: https://micro.muppetz.com/404 - Warning often causes older/slower browsers to really choke!
If anyone remembers what that URL was, I'd love you to share it. No amount of googling recently has been able to find it, I expect it's probably lost to the sands of time. I've tried a few others I found on google but none produce anything like that quality.