Fixed add service image issue and recursive json issue