Tempfile

Using 'temp.png' and 'temp.txt' in the TextClip may cause race conditions when multiple scripts are in the same directory. The tempfile module in the standard library provides a secure and portable way to create temporary files that avoids this problem.