Refactor into seperate Height and Width resize