Add resize option
refacter