Flush inline image viewer captions

Flush the caps per next/prev click to prevent captions carrying over to
the next image
Fix accidental selection highlighting with next/prev buttons

Hide the selection if accidentally triggered with multiple clicks