use to resize the imamge