Dimer models and toric diagrams