Flush image captions

Empty image captions containers on next/prev to prevent them persisting
to images with no captions