grVizToImageFile function

Export an htmlwidget object into an image file