D3 Force Directed Graph - CSS Sprites

Hi. I’m having some trouble getting the CSS sprites to work with the force directed graph.

I was able to set up the nodes and links, and to get those to display, but I can’t get the CSS sprite flags to display.

I’ve been able to get the sprites to display, but they aren’t in the correct spot of the force directed diagram, or I can just use rectangles/circles, and they will be in the correct spot. But I can’t get the flags to display and to be in the right spot. Can anyone help me with this?