Updated the temporary file name to allow a prefix. This can be used to put the original filename as a prefix so that if any error occurs, it is obvious what the original file name was.