Changed pixels data from char to unsigned char.