I did this to simulate dazzling effect, and I used a script to update an image with the screen capture, pretty much like you want it, but with a different aproach.
This file is quite old, so dunno if it works with the latest 2.7x or UPBGE but it might give you a hint