fix temp image file name

The former version was not removing the created files
Merge pull request #2 from ornicar/master

fix temp image file name