improved building of menus, allow user_menus in PlotFrame/ImageFrame