Image creation works for both debian and centos images