minor fixes and cleanup for plot_roi