added support for GRAYSCALE yuv