Use tempfile() instead of /tmp/
Need 'temp_' or 'temp.' in filename
Merge pull request #859 from hugovk/test_file_jpeg2k_tempfile

Use tempfile() instead of /tmp/