The `is_rgb` function is to be removed in another PR.