Add support for grayscale images
Merge pull request #1 from gnebehay/grayscale

Add support for grayscale images