dsputil: Move draw_edges and clear_block* out of dsputil_template