Segmentation-Based Parametric Painting