Check out `_resize` around line 209 in [oae-preview-processor/lib/util](https://github.com/oaeproject/Hilary/pull/675/files#diff-ef37ef13a84acc20730bd217c0757b30R209)