fix for saving external textures (prevent duplicated file-extension)