Now also removes the temp files for images and files