fixed grayscale JPEG
Merge pull request #297 from Taktik-be/bugfix/fix-grayscale-jpeg

fixed grayscale JPEG