save_single_plot function

Internal: save_single_plot Helper function to save a single DiagrammeR plot based on the file extension