add parallel realisation for image with 3 channels