Role of mesons in the electromagnetic form factors of the nucleon