Contour-guided Image Completion with Perceptual Grouping