implemented proper progress indication when exporting as png-image.