make Canvas and Pad context managers