Could the image directory be passed in?

Maybe like the opts object passed to the addData function?