For some reason the height is getting scaled twice for ugoira, causing a messed up aspect ratio because it was relative to the current height. This makes it relative to the original height, so it should always be correct even after multiple scales.