Before exporting images, change the background to transparent

Also enables scaling exported graphics (x2 by default).
Unfortunately, gives a "flash" when the background changes, but
I'm not sure how (or if) to stop this (it indicates a snapshot).

Change-Id: Idcb72b1a395f779cab0d58b94d4f4b0a112d3ad0