I could not get it to work with the filefields and upload images behaviour.
If i change the filefields to regular text input fields. And remove the file upload behaviours.
It all works ok.
I can live with this. Because the main purpouse is to duplicate an existing record.
Once I have done that I can do an Update on that record if I want to change the picture.
Thanks for your support.