Display images in gallery from database

Hi, I want to display an array of images from a table in a gallery, I have this function that return the images but it won’t display on my gallery what did I do wrong?

function updateProductImages ( images ) {
const newImagesArray = images . map (( item , index ) => {
return {
_id : index . toString (),
image : item . src ,
title : item . title ,
type : item . type
}
})

$w ( '#productImagesGallery' ). items  =  newImagesArray ;

Do you have properties: src, title & type in your images array?