Well a big problem I see is that “image8” is not the src of the image, you will need to get the src from the media manager or an external url:
https://support.wix.com/en/article/wix-editor-retrieving-the-url-of-an-image
https://www.wix.com/velo/reference/$w/image/src
Also since this is not specifically Velo-related you might get better help on Stack Overflow or other such sites.