resize image for test