Speed up drawing of all links

Changed draw algorithm to avoid context.stroke() calls on every links.
Now it calls it once for all inactive links.