Image completion by structure reconstruction and texture synthesis