Optimize images & fix invalid html