clean network configuration for the image