actually got everything working - patched to use NEAREST for render - added a few bits in the definition