Added set and adjust functions for yuv and rgb

This looks like a big pull request, but a lot of it is repetitive.