You can use Edge Functions to return an image. In these examples, we return an internal and external image.
Edge Functions are files held in the netlify/edge-functions
directory.
You can deploy this and all the other examples in this repo as a site of your own to explore and experiment with, by clicking this button.