Optimize images, clean up markup