fix RAW image transcoding