Dimer models and crepant resolutions