#150 fixes - figure tags must be closed