Added checking for existing of temp image file
Merge pull request #2 from Matrosskin/master

Added checking for existing of temp image file