fix miscellaneous sleep-deprivation-produced bugs...
add hard masking

that is, the mask actually removes the un-masked portions of the images, not just the keypoints