added convenience function to allow saving ggplot2 plot and getting file name at same time - use in fs_upload