Deep Neural Networks as Iterated Function Systems and a Generalization Bound