X centered closes #79
Improved resizing