Sections no longer lose the associated image when updated, and now work correctly with branching logic, closes #167.