Improved image transcoding.