split an image in 3 channels