Reverting the changes
Deprecating is_gray and replacing it with is_gray_2d