When coloring spots and edges ask for the color only once.

Signed-off-by: Jean-Yves Tinevez <jeanyves.tinevez@gmail.com>