documented resize_box.py