added direct conversion from YUV to gray