Changed image resize to use the height for aspect ratio, when resizing images