removed unnecessary control flow--even no image size change requires full resizeDuration time