KRImageGrayscale can easy transfor image to grayscale with 4 bits, 8 bits, 16 bits, 24 bits and 32 bits.