Support auto hole generation and inpainting with connectivity