Updated gallery to use figures and figcaptions.