Replaced image scaling with scalr library.
Tentative fix for images that are 1px wide when given a percentage width.