Added boolean flag to enable drawing of a divider after the last item.