updated shapes so that if mouse or finger leaves canvas, the preview shapes are removed and user must attempt to redraw