add option to not clear the canvas before drawing