Added functions to 8 bit grayscale