splitting and merging image channels