[export8u] avoid bad data on display update

by using a temporary file then rename to filepath.