implemented initial versions of brighten and darken functions