work with raw YUV instead of image files.