1. A computer-implemented method, comprising: determining a plurality of edges in an image; receiving a user input comprising a scribble as a freeform line overlaid on the image; and automatically aligning the scribble to one or more of the edges in the image by selecting one or more candidate points on the one or more edges for each point on the scribble.