Splitting and merging image color channels