Correct width_ratio calculation in perpetual_generator