refactor yuv image util class.