Images in Matrix field First time working with Craft. I've got a Matrix field for team member profiles, title, name, image, etc.

I've got all the info pulled into the page but can't get the image. Here is my code, any help is appreciated!

{% for block in entry.teamMember %} 
    &lt;figure class="team-item"&gt;
        &lt;img src="{{ memberPhoto.url }}" alt="{{ block.memberName }}" /&gt;

        &lt;figcaption class="team-item--info"&gt;
            &lt;h3&gt;{{ block.memberName }}&lt;/h3&gt;
            &lt;h4&gt;{{ block.memberTitle }}&lt;/h4&gt;
            &lt;h5&gt;hometown: {{ block.memberLocation }}&lt;/h5&gt;
        &lt;/figcaption&gt;
    &lt;/figure&gt;
{% endfor %}
You need to loop through the assets as follows:

{% for asset in block.memberPhoto %}
    &lt;img src="{{ asset.url }}" alt="{{ block.memberName }}" /&gt;
{% endfor %}


See https://craftcms.com/docs/assets-fields for more info.