compress images, changed png to jpeg