Added ability to pass an optional replace colour