TST : added test for context manager
ENH : added code to handle binary images correctly

 - tifffile barfs on bool arrays, cast to uint8 first
BUG : added missing return statements, fixed super call
API : added ImageSink class
ENH : added basic tool module

 - added thresholding tools
ENH : add auto-generated binary operation tools