I made a little example of using @Netlify's new image transformation service along with a shortcode in @eleven_ty (but you could use any SSG in this way) to generate the markup and assets for responsive images using the <picture> element.
https://example-nlm-picture.netlify.com