title: wordpress plugin development - using images - path not found
body: <p>I'm writing a plugin for wordpress and am having trouble with images. If I have my plugin in wp-content/plugins/my-plugin/ and in there, a folder images/test.png - how do I reference that image in my code? I don't want to have to put the images in to the theme, as when other users come to get my plugin, the image won't work!</p>
  
  <p>so my structure is</p>
  
  <pre><code>myplugin/plugin.php (which includes several files...)
  myplugin/pluginstyle.css
  myplugin/includes/page.php
  myplugin/images/test.png
  </code></pre>
  
  <p>I have the style sheet working nicely, but when I try and use an image as the background for an element it doesnt work.</p>
  
  <p>How do I reference the image in my plugin?</p>
  
  <p><strong>test output from page.php</strong></p>
  
  <pre><code>&lt;div class="test"&gt;&lt;p&gt;hello&lt;/p&gt;&lt;/div&gt;
  </code></pre>
  
  <p><strong>css</strong></p>
  
  <pre><code>.test { background: url(../images/test.png) repeat-x; }
  </code></pre>
  
  <p>where am I going wrong? Is there a method which I should be using? 
  Thanks for any help!</p>