added brightness and contrast operation