Cosmetics.
Factorised a resize method.
Respect aspect ratio.
Restored window resize. Fixed css.