replaced scipy.misc.imresize with skimage.transform.resize