make darken and lighten work with grayscale colors