Fixing double to uchar conversion warning.