Fetch image and send to email

So the main part of that change node is where it sets up the attachment...

JSONata...

[{
 "filename": 'cam_' & $replace($now(),":","_") & '.jpg', 
 "content": $$.payload,
 "cid": "" & cid & ""
}]

Does the msg going into this change node have a property msg.cid and is the image buffer in msg.payload?