Add draw_underlay fonction to the common module