Using extension as suffix for temp file would help while debugging (image files browseable as images)