Solve downloadButton error for ggplot2 graphics: Issue 40