update for support rgb <--> yuv