How to erase edges that appear around the original