Insert an image at specific paragraph of word document : Apple script, Word

Hi trying to insert an image to word document at a specific paragraph. using the below script > on run argv

	set targetParagraph to item 1 of argv as number
	set imageName to item 2 of argv
	tell application "Microsoft Word"
		activate
		tell active document
			activate
			set x to text object of paragraph targetParagraph
			make new inline picture at x with properties {file name:imageName, save with document:true}
		end tell
	end tell
end run

Facing erro: Cant make or move that element into that container (-10024)

Please take a look at this post:

You can forego the section-related stuff as you’re not dealing with headers.

Key point… you place it ‘after’ or ‘before’, not ‘at’.