fixes to yuv conversion