Offline Sketch Parsing via Shapeness Estimation