repeating steps g through l until {TAIL ~ a boundary} of {HEAD ~ said image} is reached 
repeating steps g through l until { TAIL ~ a boundary } of { HEAD ~ said image } is reached
OTH OTH OTH OTH OTH OTH TAIL TAIL TAIL TAIL TAIL TAIL OTH HEAD HEAD HEAD HEAD HEAD HEAD OTH OTH