Revert some code to show curves, set the right bbox
Add utils.py with a bbox helper