Remove temp files, prevent downloading of non-images

Pasting a 5GB file, or pasting a lot of images, could fill up /tmp ... not anymore.