Artefact-free color and contrast modification