From image processing to topological modelling with p-adic numbers