Fix a memory bug in pulsar.lua, image data needs to be bound to a buffer

Otherwise garbage collector *sometimes* kills the buffer before it is
used.
Add the tools/field-loop.py script