Theory of Images and Quantum Mechanics, a common paradigm