fixed a bug with grayscale
jshint
Upgrade package.json version to 0.3.9