Revert "add image sizing function"

This reverts commit 59911db6d5106b027ca6224eb3723726a206b1d6.