improved motion with rgb/yuv case