change of assignment- creating a color image with same R G and B channels
thresh_type_val explanantion
need to specify the filename in stack mode