improvements to image comparison functions
Merge branch 'master' of github.com:yiuin/npl