optimize images, and change bg image to a jpg to save size