Correct display of ImGui frame