pizza images resized and webp conversion

Repeated code consolidated in main.js