How to get acess to icon image inside a button via script

hi there,
I am trying to make a button list that will have a text and an image next to it.
So far I have managed to change the text using : GetComponentInChildren<Text>().text = name
but whenever I try to do the same with the image, it changes the background image of the button.
is there a way I can get the image component the is inside the button?

Buttons, by default, don’t appear to have images on their interior. They only appear to have their background image intended for the button border, so you’ll have to manually add that object to it, either independent, or together with the Text child object, although I’d usually use an different object myself. If you’re making a list of these, then you’ll want to make a prefab of this enhanced button so it is easily cloned by your script.

I have managed to work this thing out,
I simply traced the image using:

GameObject v = somebject.transform.GetChild (0).GetChild (1).gameObject

and changed its source