made scipy.misc.imresize optional