add tests on getBinnedDimension
style
explicitly produce square bounding boxes, test the resize method