Chaged the way are added the Tiles to a Layer.