save images as png to workaround strange crash in libjpeg