Shouldn't we only set show_captions here if it existed in the xml? I'm confused how this is working, as I'd expect us to get into the False clause if show_captions isn't in the xml.