split the image into 3 bitplanes