Use kcalc instead of ImageStat in shapeworks.py