Where is the mp_product_image(); function located?

I want to customise this function so to extract only the product image URL, so I can build my own HTML around it. Where is this function located?