Use the samples to build a python application that runs continuously and communicates to/from Node-RED via MQTT.
You could define a trigger topic to begin capture (inject --> MQTT out "camera/1/trigger") then send the resulting image back to node-red (MQTT-in "camera/1/image" --> )