Hi Fabiano,
I noticed some things on your code that needed fixing:
1. When you are "preparing" the record of the ProdutoPicture, you should reference the ProdutoId recently created, not the one in parameter because it is null when you are creating:

2. When you are submitting binaries to the database, your button / link method needs to be set to Submit, not to Ajax Submit. Take into account that with Submit, AJAX refreshes won't work.

I send you the OML in attachment.
Kind Regards,
João