shopify product.images code example
Example 1: get product main image shopify
{% for image in product.images offset:1 limit:1 %}
<img src="{{ image.src | product_img_url: '500x' }}">
{% endfor %}
Example 2: get product main image shopify
{{ product.images[0] | product_img_url: 'medium' }}