This is great! Where should I add the code to covert jpg to webp?

Thank you!