automatically transcode images other than jpeg/png to jpeg