Refactor brighten/darken methods to avoid duplication