Fixed bug in resizeAuto

resizeAuto did not adhere to the original image’s aspect ratio. This is
now fixed. Removed surplus methods (resizeLandscape() and
resizePortrait(), as they are no longer needed.