REVERT IMMEDIATELY
Revert "REVERT IMMEDIATELY"

This reverts commit 510b77b40dd48c23a4e577a2681c479a3c0a8e8c.
Did a proper job of converting units to px
Neatened up resize function