Fix png to jpeg problem