added contrast and brightness to CBMBitmap