call stopDrawing before reseting data, not after