Help with save image from openai base64 - nodered

Anyone know why this flow not working.
I want to create a image using Dall-e-3 convert it to base64.json and save it as png in my home assistant local folder.

i cant get it to save the image after it has been generated. I’m a little unsure if the path top home assistant www folder is correct?

this is my flow

[{"id":"inject_node","type":"inject","z":"af21a0f0faa0a2a5","name":"Trigger","x":120,"y":620,"wires":[["function_set_api_request"]]},{"id":"function_set_api_request","type":"function","z":"af21a0f0faa0a2a5","name":"Set API Request","func":"msg.headers = {\n    'Authorization': 'Bearer API KEY',\n    'Content-Type': 'application/json'\n};\nmsg.payload = {\n    model: \"dall-e-3\",\n    prompt: \"A beautiful and artistic representation of snowy weather in Copenhagen\",\n    n: 1,\n    response_format: \"b64_json\"\n};\nreturn msg;\n","outputs":1,"timeout":"","noerr":0,"initialize":"","finalize":"","libs":[],"x":170,"y":720,"wires":[["http_request_api_call"]]},{"id":"http_request_api_call","type":"http request","z":"af21a0f0faa0a2a5","name":"Call OpenAI API","method":"POST","paytoqs":"ignore","url":"https://api.openai.com/v1/images/generations","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"bearer","senderr":false,"headers":[],"x":290,"y":660,"wires":[["27a53fad.5c768"]]},{"id":"27a53fad.5c768","type":"base64","z":"af21a0f0faa0a2a5","name":"","action":"str","property":"payload","x":400,"y":620,"wires":[["92e1e5481680cccc"]]},{"id":"92e1e5481680cccc","type":"file","z":"af21a0f0faa0a2a5","name":"Save as Image","filename":"/config/local/img/image.jpg","filenameType":"str","appendNewline":false,"createDir":true,"overwriteFile":"true","encoding":"none","x":490,"y":680,"wires":[[]]}]

and this is the payload after base64

ewogICJjcmVhdGVkIjogMTcwMTQ2NDk0NSwKICAiZGF0YSI6IFsKICAgIHsKICAgICAgImI2NF9qc29uIjogIlVrbEdSbXkyQndCWFJVSlFWbEE0SUdDMkJ3QXd4d3lkQVNvQUJBQUVQaTBRaGtLaG9RNEdseFFNQVdKWWt3Ynl6ZzdWcjhQbHZUeC9heGQ4dzZNZnZVL3c4N1R2Si8ya1lkMElFTGNEc0Y3UzZvZnViemE4enR2K3IvcHZReDVYN21QbUg0RC9QLytEL0tmTTEvRC8rdjNrZG5Yd2YvQi9iMzh5UGRLOW8vblAvSC9uLzlaKzRuejgvM3YvMi8yM3VSL3QzK3MvK2Yrby9mLy95ZllML1lmOGwvNXY4Ny9zZmhkLzRmM0YvNVB3Vy94di9WL05YNERmMkgvYWZ0Ny96dmlQLzV2LzQvNFAvQy8vL3lkL3hYL0cvYmovaGYvLzZCZjdQL3IvLzEvdFArZjhZWC9sLy8vL1cvNmZ5Vi81TC90Ly8vL3BmODc1RXY2dC91UC96L3ZmK0g4VEgveC9lZi93L0tqL2hQL04rNzMvaStSLyszZjhuLytmODcvcS9BQi8vL2JXL2dILys5UUQvNzc2YnVZK3kvMkw5aS83ZDZCL2tQemYrRS91UCtULzNYOTYvYm42K1BuLy9ML3luK2ovOVhpSjlNL2Z2K0ova3Y5WC84djh4LysvLy85QS95cjd1L29mN3ovbmYrYi9oUDNkKzVIN3ovdlA4Zi9uLys5L2x2UVA4Ly9iZjkxL2lQOUYvM3Y4cis5SDJDL2tuOC8veW45MC95Ly9JL3Z2N3MvT044ci80Zjg5L3Z2Mjk4UlhULzhSLzNQOC8vdHYveCsvLzBDK3czMDcvWS8zMy9QZjkzL0pmdlo4ejN4Ly9YL3puK3QvK3YrZC8vL3lEK20vNEwvbi81ci9TLysvL1AvLy8veC9vRC9OZjYvL3UvOEwvb1AvSi9sLy8v...

This is the save image node
image