Cleanup window
Store commands
Add background color
Cleanup margin
Offset canvas