@zachleat @eleven_ty I like the idea of using a nunjucks shortcode for images. It helps enforce some good conventions and let’s you adjust them all in a single place.
I used one to help me generate markup for responsive images in this example:
https://css-tricks.com/tips-for-rolling-your-own-lazy-loading/#article-header-id-4