Conversion to grayscale only if required.

![out](https://cloud.githubusercontent.com/assets/1530673/3625702/d5c1cd90-0e70-11e4-9b36-a67fdb340ddb.jpg)