@soniaayush24400 Now i understand why i did not understand your SETUP!
Yes it was not a dynamic page directly, but it is some kind of a dynamic page, fired through the Wix-Stores-App. And yes, it was also not a REPEATER.
However, you can not enter produtcs-database by a usage of a query (correct me if i am wrong at this point Velo-Masters), but though i got it to work, at least i could get all these inofrmations for you out of the Products-Database…
-------------------------------- CORRECTION on my own statement ----------------------------------------
However, you can not enter produtcs-database by a usage of a query.
Yes you can!
-------------------------------- CORRECTION on my own statement ----------------------------------------
..and there a even more informations which are provided by the wix-stores-App to be working with.
So now you have your ITEM-ID, right? Let’s check it! → Look at this…
You are now able to get all the PRODUCT-DATA for EACH PRODUCT - - > including …
- Product-Name:
- Product-Inventory-ID:
- and many other informations…
But do we realy need more than just the NAME of the current PRODUCT to solve your PROBLEM? → The answer is → NOPE WE DON’T 

So once you have selected one special PRODUCT on your Wix-Stores Product-Page (original-wix-stores-app-product-page) and once you got all the data of your selected PRODUCT-DATA, what do you want to do NOW ???
Of course !!! - → You want to get the corresponding → INGREDIENTS-IMAGE ← out of your SECOND-DATABASE which is in your case called → “Ingredients”
Take a look at this one…
The two yellow-marked RESULT-lines are from the two different DATABASES (Products & Ingredients)
Do you have already an idea, how you can solve it now?
Ok, i think you will be able to handle the rest by your own, right now.
You have now all DATA you need to get this to work.
And you know where to find me if you are still not able to do it by your own. 
BTW: Your current working CODE:
$w.onReady(async function() {console.log("Page READY!");
// Get Ingredients-Data ....
let ingredients = await get_DATA(database, refField); console.log("Ingredients: ", ingredients);
// Get Products-Data...
$w('#productPage1').getProduct()
.then((product) => {//console.log("Product: ", product);
let productName = product.name; console.log("Product-Name: ", productName);
let productDescription = product.description; console.log("Product-Description: ", productDescription);
let currency = product.currency; console.log("Currency: ", currency);
let discountedPrice = product.discountedPrice; console.log("Discounted-Price: ", discountedPrice);
let inStockAvailability = product.inStock; console.log("In Stock available: ", inStockAvailability);
let inventoryItemId = product.inventoryItemId; console.log("Inventory-Item-ID: ", inventoryItemId);
let productImage = product.mainMedia; console.log("Product-Image: ", productImage);
let productMediaItems = product.mediaItems; console.log("Product-Media-Items: ", productMediaItems);
let productPrice = product.price; console.log("Product-Price: ", productPrice);
let productPageURL = product.productPageUrl; console.log("Product-Page-URL: ", productPageURL);
}).catch((error)=>{console.error(error);});
//***************************************** Complete CODE here *********************
// Set IMAGE to the corresponding current selected PRODUCT...
//$w('#image1').src = ingredients[0].ingredients
//***************************************** Complete CODE here *******************
});
// Gets Data out of DATA.....---------------------
function get_DATA(database, refField) {
return wixData.query(database)
.include(refField)
.find()
.then((res)=>{console.log(res);
let ITEMS = res.items;
return(ITEMS);
}).catch((err)=>{console.log("ERROR: ", err);});
}
This part will be done by your own…
And you do not need any repeater in your case → just a simple IMAGE…
..which will change automaticaly, when you change selected product.
But this function you will have to write by your own. Like already mentioned → you have now all needed data to get your END-SOLUTION!
LINK to related/corresponding page…
https://www.advaitamayurveda.com/product-page/anti-dandruff-hair-oil
!!! DO NOT FORGET !!!
CONSOLE = YOUR BEST-FRIEND !!!
Good luck and have fun! (i leaved your editor)