Hierarchical Neural Networks, p-Adic PDEs, and Applications to Image Processing