Updated .gitignore.
Use bit math to do resampling; fixes a slight error in the 4 bit resampling code.
Updated reference image for 4 bit grayscale.