Made widget_from_point function public and simplified canvas_draw