Making the <%= image_tag %> into the <picture>

How to redefine the template for the image_tag helper? I want to do <picture> tags instead of plain <img> to support WebP.

UPD: found the solution

Can you provide any guidance on how you managed to handle this? I would really love to integrate the picture tag with my middleman workflow…

In the middleman-simple-thumbnailer extension (working link) you can see how to redefine the image_tag helper. So just redefine it for pictures.

I can’t find any code saved, sorry.