Storing and retrieving a mouse-drawn shape