Copy Images

I have some code that imports a Bill of Material, when doing so I look up in a Master Object and if I find a match, I copy the the the details to the Purchase Requisition.

Everything works, except images.

I am doing the following to store the record in a temp field.

Image = projectData.records[0].field_483_raw

and the following as part of the data

field_771: Image

When the page renders it does not find the image, what is the best way to make this work.

Related question, if I use the Form Rules, it works, is there a way I can see the code generated from a Form Rule, if so how would I do that.

Thanks