Add osd_canvas_width/height variables (#12164)