More explanation please?
Ndless 3.1 has a feature, named Ndless Lua extensions, that enables anyone having the .luax file in the ext directory of Ndless to enhance Lua modules.
Extensions files (*.luax) are C compiled modules that uses the OS Lua API.
Since Ndless runs only on 3.1 for now, this means your script won't run on 3.2
As said Lionel, no real extension were written so far, so no extension were written to rotate a TI-Image.