Changing the brightness and contrast of bitmaps