Improved temp file name generation. Moved temp file unlinking closer to generation.
Improved temp file name generation.
Moved temp file unlinking closer to generation.

LucidityDesign/imager,nishant8BITS/imager,robinskumar73/imager,mkyung/imager,madhums/imager,imagerjs/imager