Had a look at the error and the created files on the server, it would appear that the script is looking for a file that is the mac address with .000 on the end, this however is not created ( only a file with the same name as the image)
The Error states “CHMOD /images/xxxxxxxxxxxx.000: No such file or directory”
Not sure when this file is created in the script so still looking…