Building images with code is a hobby of mine. In Python, generating images with Pillow is very easy. All you have to do is generate the image’s bytes and pass it to an Image object.
<img> tag. The BMP format seemed like the simplest image format that worked in web browsers.