tmp-format: add support for multichannel images