SketchConf: A Framework for Automatic Sketch Configuration