Added some cleanup code for clearing yum cache and network settings when creating stage images