fix bug in exporting images