modified:   brainbehavior/imageutils.py