Added rudimentary scaling. It should work up to 800 pixels high.