Looks much cleaner, but shouldn’t HTML/CSS or SVG have been used instead of creating images for every user?
I think using SVG would have saved much storage space and added more flexibility to avatar creation.
One zero storage example I can think of is where colors are randomly selected taking user’s username as seed in a RNG, and then extracting the user’s name’s first letter from the DB (shouldn’t be expensive since names are already displayed wherever there are avatars), and then inserting it in a SVG template.
Since SVG images can also be cached, this shouldn’t put much load on servers, while saving precious storage space and adding flexibility to change all avatars in one go if need be.