Define gray method explicitly, use a positive check for alpha value
Merge pull request #1 from wasnotrice/gray

A different approach to defining the gray method