QWeb has an iteration directive foreach which take an expression returning the collection to iterate on, and a second parameter t-as providing the name to use for the "current item" of the iteration:
In I access Image of product_id using pack.operation
You can select size of image like: image_small and image_medium