How to get the base image for a product programmaticaly ?

I have implemented the function df_product_image_url() for it.

If you pass the image string as the second parameter, the function will return the base image’s URL:

df_product_image_url($product, 'image')

Details: How to get an image URL for a product programmatically?