fix resize png to jpeg