ToFImageRecorder is writing in different thread again.
Merge branch 'bug-12997-UseCreateTmpFile'