How do i make a screenshot appear in my esc menu

So i have this photocamera that goes to your face and when its there it switches to a camera in the front of the photocamera that has some color correction and other stuff, anyways i want to be able to take pictures ingame with it and have them display in the “esc menu” (menu that appears when i press esc) i already did a small thing that checks if camera is up to face and takes a screenshot but i want to know if i can take that screenshot while playing and displaying it in the esc menu.