Add gray() support

Close #44