(Menu) Refactor save_shader_preset function