Cokernels in the category of abelian groups

Suppose f:A→B is a morphism of abelian groups. Prove that the projection morphism π:B→B/im(f) is a cokernel of f.