resize image before extracting feature vector