I'm using the image module, and am trying to set up a javascript gallery that requires the file paths to be included in the output like this:

["www.example.com/image1.jpg", "This is caption No. 1"];

I've been able to code it to pull in the title, but am having no luck getting the image path to be included.

["IMAGEPATH", "<?php print $title ?>"];

How can get the image path to be output into that spot?

Thanks in advance for any assistance.