Fix URL escaping of image references from CSS.
Fix #49: Division by 0 on dashed or dotted border smaller than one dot/dash.