In this code the reference to each of the objects was as it is the first one .
Alternatively you can refer to the page or master's rectangle by its name.
var oDoc = app.activeDocument; oPage = oDoc.pages oRec=oPage.masterPageItems.override(oPage) oRec.place("C:\\images\\123.jpg") oRec.fit(FitOptions.PROPORTIONALLY)
Thanks, Eli. That looks like it should do it.