Get local url for product image
I've created my own loop outside of the Datafeedr context where I grab some products for display. All works fine, except that I can't seem to find how to dynamically get the url of the local product image.
I thought of constructing it by using the $product->id, but I noticed that eg. Amazon product images are not cached locally (as might be the case for other merchants), so this is not an option.
Took a quick glance at datafeedr.php, but perhaps you could point me in the right direction?