start of code for loop and reverse control. are we experiencing an off-by-one issue?
twiddling with gif. last frame never renders. can't spot the problem.