Added option for binary and grayscale images

Improved Accuracy to 92.5% for grayscale