1. A method, comprising: separating an image into first regions to be compressed and second regions to be synthesized via inpainting; extracting visual edge information from the second regions, the visual edge information to be used for propagating structural edges of the second regions during the inpainting; compressing the first regions and the visual edge information; and combining the compressed first regions and the compressed visual edge information into a bitstream.