Added lighten, darken, and duplicate functions.