BUG Fix Haralick computation

closes #33 on github with a patch from Tony S Yu who reported it.

Also adds a few sanity tests for Haralick well functioning.