Checks if scaling by width or height is better