Partially implemented image border padding
wip
Move eventmanager to linetool
Minor refactor
wip
Fix handling of multiple lines.