Google removed outdated JavaScript and accessibility guidance from its documentation. Google Search has rendered JavaScript well for years. It's the latest in a series of JS documentation updates.
Google can index JS-loaded images when properly configured. Check rendered HTML in Search Console to diagnose why images aren't appearing. Update XML sitemaps and add alt text to maximize JS image ...