Render to texture script not working in 4.4

I was trying to use this script in UPBGE 4.4

(as its the most recently posted render to texture method)

UPBGE 0.3 crash when attempting to use ImageRender() for RenderToTexture · Issue #1672 · UPBGE/upbge

But it seems to have broken, even with the fixed script line in the reproducible test file. I’m not very experienced in python, and any information would help.

Thanks a ton,

It worked till 0.36.1.

in 0.44 it got broken and was only fixed for 0.5