added yuv conversion functionality. tons of bug fixes.