Replace lighten and darken methods with brightness, like W3C