Implement contrast and brighten