How to include G4P controls with saveFrame

The code is correct, it happens that I have the saveFrame () in two different places in the code, the first one is in that area that you indicate and the other is at the end, in the same way it is saved in the screenshot what It is drawn after the first saveFrame (), what is not saved in the screenshot are the buttons / image added with the G4P.