title: ProcessingJS - loadImage() and loadStrings() path problem
body: <p>I have a path problem when using loadImage() and loadStrings() in Processingjs. I would like to have my sketches and their associated files (images, text files) in one place and to be able to call them from another on my site.</p>
  
  <p>For example, I am trying to run a Processingjs sketch located at
  www.example.com/sketches/mysketch.pde from the page www.example.com. This works fine when there are no external files.</p>
  
  <p>Alas the problem starts when I need to use loadImage() and loadStrings() to look for images and texts to load. It defaults to www.example.com/image.jpg and not to the sketch location, www.example.com/sketches/image.jpg.</p>
  
  <p>The need for @pjs preload makes matters worse.</p>
  
  <p>Without moving the files and without hardcoding, is there a way to
  tell Processingjs to look for the files to load in the same folder as
  the .pde and not the .html?</p>
  
  <p>I hope this is clear. Any help would be appreciated!</p>