resize image by scale