Resize by height

* Added in the option to resize by height while cleaning up the resize function.