to change the rgb to bgr mode