Changed colorComponent type to char. First 8 bits of image should consist the letter of component in upper case