added ability to set bgcolor for figure/plot