Changes after review

Add comment explaining metadata is not saved to original
and possible enhancement.
Use TempFile.WithExtension().