Record and replay drawings