Try to fix the file path when saving and add multiple file types