1. A computer-executable method, comprising: selecting a first visual object to be a model for synthesizing a part of an image via object-based inpainting; generating a second visual object from the first visual object; and inpainting the second visual object into the part of the image.