[Crop] Fix max edge + ratio computation