Don't store separate tempFile in struct.

We have f.Name(), and it's available even if the file was closed.