adding replace colour functionality

adding replace colour functionality