Generates a unique temporary file.
Generates a unique file using the temp path supplied in the user's gimprc.
The extension the file will have.
The new temp file.