Fix wrong html being generated for the documentation of a task solution

When using an obect with spacing enabled, an opening div tag was generated that
missed the closing > bracket. This resulted in damaged html which was displayed
wrongly.
Add support for images that are not inside a figure

This has been in the protocol since the first version but was (for whatever reasons)
not implemented. It is now implemented as a figure with an empty description.