I think what datgame is suggesting (and I agree) is that imgui.ini should be in the remedybg/ .exe folder and never in the user's exe-being-debugged folder.
You can redirect the filename to an absolute path if needed.
You can also use the memory functions to read/save .ini data from memory and read/write it back however way to want, but using imgui.ini should be good enough in this case.