added unittest for imagefile bounding box function, bugfixes in
imagefile.py