What are fourth and sixth lines output by this script:
Loops image