Fixed some regressions following refactor that was resizing images incorrectly (actually not at all).