Various optimizations

Easier file conversion, optimized yuv->rgb
More consistent formatting