Simplify the draw_ratio function