I am trying to loop through a matrix to output three blocks but also I want to pull in 3 images from 3 different sections. The images are asset fields in 3 other sections. should i loop through those sections using craft.entries or craft.assests? below is an example of what i have been trying out. thanks in advance for any help
{% for block in entry.homeMatrix %}
{% if block.type == "homeMatrix" %}
<a class="half-box full-box" href="{{ block.entry.first().url }}">
{% for image in craft.assets.kind('image') %}
<picture class="box-image">
<!--[if IE 9]><video style="display: none;"><![endif]-->
<source srcset="{{ entry.lTopBannerImg.first().url('gridImages480X340') }}" media="(min-width: 45em)">
<source srcset="{{ entry.lTopBannerImg.first().url('gridImageOdd559X315') }}" media="(min-width: 28.4375em)">
<source srcset="{{ entry.lTopBannerImg.first().url('gridImages560X520') }}">
<!--[if IE 9]></video><![endif]-->
<img alt="{{ entry.lTopBannerImgAltText.first().title }}" srcset="{{ entry.lTopBannerImg.first().url('gridImages480X340') }}">
</picture>
{% endfor %}
<div class="box-bar">
<h2>{{ block.url }}</h2>
</div>
<div class="see-more"><span class="plus">Click to see more information</span></div>
</a>
{% endif %}
{% endfor %}