Fix up exporting whole image (this got broken by a bad merge when making this not run on the UI thread).