The mayor and council shall have the right to require such bonds for the faithful performance of officers and agents as they may deem proper, pay the premiums thereon out of the general funds, and in case of breach, the city may recover thereon.