* Secured thinned image restoration + writing distance to the final image