It’s a very similar concept used here:
And it’s similar with how you can used Cloudinary for customizing images on the fly.