A replacement for scipy.misc.imresize that does not depend on PIL