Remove deprecated functions is_gray and is_rgb