Mostly fixed arrow issues

Errors when next arrow goes past last image, and back arrow goes past
first image. Need to fix errors or add a stop at the end of cycling on
next and back arrows.