Painting on the Wall

If you hang a painting over two nails on the wall and remove one of the nails, the string of the painting will stay over the other nail, and the painting will keep hanging. Can you wrap a string around the nails in such a way, so that after removing any of the nails, the painting will fall?

The solution is shown below.

We do not know where this puzzle originated from. If you have any information, please let us know via email.