The top paragraph is turns the image into a link. Put a “medium” sized image in the image tag. The data-target number depends on the order of your modal. The first one is 0, then 1, etc.
The second paragraph controls how you modal shows up. Put the large-sized image in there.