Image Optimization for CodeGen

I noticed that when using the Plasmic Studio preview, that my uploaded images get optimized (in size as well as converted to webp).
Once I push my code to Github / Codegen, these optimizations are gone - the image is regularly embedded.

Is this on purpose? Any way I can optimize the images when using the Codegen way?
If not, what about the default functionality of next.js to convert images to webp?

Thanks a lot!

Hey @clemens_vie, can you try setting the images.scheme setting to "cdn" in your plasmic.json? Here are some links to the docs: plasmic.json Configuration | Learn Plasmic