Adding Product Image in 4x6 Packing Slip

Looking to add a product image at my packing list, just switched to 4x6 label from the normal size. everything works okay but unfortunately there’s no product image on the packing slips now

this is the current 4x6 code that i’m using from this tutorial : https://community.shopify.com/c/payments-shipping-and/customize-your-packing-slip-template-to-use-4x6-inch-format/m-p/1521290#M57658


Order {{ order.name }}

{{ order.created_at | date: "%B %e, %Y" }}

Ship to

  

{% if shipping_address != blank %}
{{ shipping_address.name }}
{% if shipping_address.company != blank %}

{{ shipping_address.company }}
{% endif %}

{{ shipping_address.address1 }}
{% if shipping_address.address2 != blank %}

{{ shipping_address.address2 }}
{% endif %}
{% if shipping_address.city_province_zip != blank %}

{{ shipping_address.city_province_zip }}
{% endif %}

{{ shipping_address.country }}
{% if shipping_address.phone != blank %}

{{ shipping_address.phone }}
{% endif %}
{% else %}
No shipping address
{% endif %}

        
Shipping Service:
{% if order.shipping_method.title != '

Bill to

{% if billing_address != blank %}
{{ billing_address.name }}
{% if billing_address.company != blank %}

{{ billing_address.company }}
{% endif %}

{{ billing_address.address1 }}
{% if billing_address.address2 != blank %}

{{ billing_address.address2 }}
{% endif %}
{% if billing_address.city_province_zip != blank %}

{{ billing_address.city_province_zip }}
{% endif %}

{{ billing_address.country }}
{% else %}
No billing address
{% endif %}

---

Items

Quantity

  

  {% if line_item.image != blank %}
       
         

           {{ line_item.image | img_url: effective_image_dimensions | img_tag: '', 'aspect-ratio__content' }}
         

       

       {% endif %}
{% for line_item in line_items_in_shipment %}

**{{ line_item.title }}**

{% if line_item.variant_title != blank %}

{{ line_item.variant_title }}
{% if line_item.sku != blank %}
•
{{ line_item.sku }}
{% endif %}

{% elsif line_item.sku != blank %}

{{ line_item.sku }}

{% endif %}

  

{{ line_item.shipping_quantity }} of {{ line_item.quantity }}

{% endfor %}

{% unless includes_all_line_items_in_order %}

---

There are other items from your order not included in this shipment.

{% endunless %}

---

{% if order.note != blank %}

Notes

{{ order.note }}

{% endif %}

SHOP FOOTER 

<strong>
{{ shop.name }}
</strong>

SHOP LOCATION

{{ shop.email }}

{{ shop.domain }}

The code for the product image should be within the for loop. Like this:


Order {{ order.name }}

{{ order.created_at | date: "%B %e, %Y" }}

Ship to

  

{% if shipping_address != blank %}
{{ shipping_address.name }}
{% if shipping_address.company != blank %}

{{ shipping_address.company }}
{% endif %}

{{ shipping_address.address1 }}
{% if shipping_address.address2 != blank %}

{{ shipping_address.address2 }}
{% endif %}
{% if shipping_address.city_province_zip != blank %}

{{ shipping_address.city_province_zip }}
{% endif %}

{{ shipping_address.country }}
{% if shipping_address.phone != blank %}

{{ shipping_address.phone }}
{% endif %}
{% else %}
No shipping address
{% endif %}

        
Shipping Service:
{% if order.shipping_method.title != '

Bill to

{% if billing_address != blank %}
{{ billing_address.name }}
{% if billing_address.company != blank %}

{{ billing_address.company }}
{% endif %}

{{ billing_address.address1 }}
{% if billing_address.address2 != blank %}

{{ billing_address.address2 }}
{% endif %}
{% if billing_address.city_province_zip != blank %}

{{ billing_address.city_province_zip }}
{% endif %}

{{ billing_address.country }}
{% else %}
No billing address
{% endif %}

---

Items

Quantity

  

{% for line_item in line_items_in_shipment %}

  {% if line_item.image != blank %}
       

         

           {{ line_item.image | img_url: effective_image_dimensions | img_tag: '', 'aspect-ratio__content' }}
         

       

       {% endif %}

**{{ line_item.title }}**

{% if line_item.variant_title != blank %}

{{ line_item.variant_title }}
{% if line_item.sku != blank %}
•
{{ line_item.sku }}
{% endif %}

{% elsif line_item.sku != blank %}

{{ line_item.sku }}

{% endif %}

  

{{ line_item.shipping_quantity }} of {{ line_item.quantity }}

{% endfor %}

{% unless includes_all_line_items_in_order %}

---

There are other items from your order not included in this shipment.

{% endunless %}

---

{% if order.note != blank %}

Notes

{{ order.note }}

{% endif %}

SHOP FOOTER 

<strong>
{{ shop.name }}
</strong>

SHOP LOCATION

{{ shop.email }}

{{ shop.domain }}