title: Adding a image to a d3 node along with circle
body: <p>I did google could not find what i am looking for. </p>
  
  <p>I wanted to add a image toa d3 node, but not by replacing the whole node. but along with the d3 circle node i want the image also appended. something like adding a label to the node. </p>
  
  <p>I want this to mark a node. for example in a topology, wanted to show the source and destination of a path.</p>
  
  <p><strong>Edited:</strong>
  if there is better way to do this also please suggest.
  i tried adding the image to the node. i could see the image is added in the firebug, but it is not visible. </p>
  
  <p>Tried in the fiddle. 
  <a href="http://jsfiddle.net/pkolanda/2ryu34qv/" rel="nofollow">http://jsfiddle.net/pkolanda/2ryu34qv/</a></p>
  
  <pre><code>  nodeEnter.append("text")
        .attr("dy", ".35em")
        .text(function(d) { return d.name; });
  
      nodeEnter
        .append("img")
        .attr("src","https://lh4.ggpht.com/Tr5sntMif9qOPrKV_UVl7K8A_V3xQDgA7Sw_qweLUFlg76d_vGFA7q1xIKZ6IcmeGqg=w300");
  </code></pre>
  
  <p>In the fiddle i am trying to add to all the nodes. based on the user event i will select a node to mark.</p>