repeating steps d through n until {HEAD ~ a boundary} of {TAIL ~ said image} is reached 
of
repeating steps d through n until { HEAD ~ a boundary } of { TAIL ~ said image } is reached
OTH OTH OTH OTH OTH OTH HEAD HEAD HEAD HEAD HEAD HEAD REL TAIL TAIL TAIL TAIL TAIL TAIL OTH OTH