Diagrams in the polaron model