Using Jimp in function node

There is no need to import Jimp.

What you are doing here is (unnecessarily) importing a DIFFERENT version of Jimp to the version image-tools installs.

The image node already outputs the image (and its properties) so you can access the pixel data see this example where I set msg.image in the image node and in the function "colorise" I call setPixelColor: How to generate an image from the 8x8 raw heat map data of an AMG8833 thermal sensor - #8 by Steve-Mcl

e.g.