Added replace_color algorithm to be used for filtering and noise reduction.