resize before convolution