Add option to disable image resizing

I added an option to disable image resizing.

Interestingly, a number of tests fail when run. However, when running tests on a fresh clone of c8cafc66a058b1d80ec98157def5360a1a6378ae, the same tests fail.