Performance boost

Scaling is now left to the browser, instead of me doing it myself. This
should in theory be a very significant performance increase.