Fix a bug with grayscale image
Merge pull request #185 from kigeia/testing

Fix a bug with grayscale image