could resize the image