Cleanup temporary files on image upload.