Ionic-image-loader alternative to preload images

Any good alternatives to this? I am using Capacitor.

ionic-image-loader - npm has not been updated in a couple of years and while I can build it with 7.0.0-beta-2. It has this error when serving or running on device.

Uncaught TypeError: Cannot read property 'id' of undefined
    at registerNgModuleType (/vendor-es2015.js:81976)
    at /vendor-es2015.js:81987
    at Array.forEach (<anonymous>)
    at registerNgModuleType (/vendor-es2015.js:81987)
    at new NgModuleFactory$1 (/vendor-es2015.js:82084)
    at compileNgModuleFactory__POST_R3__ (/vendor-es2015.js:85628)
    at PlatformRef.bootstrapModule (/vendor-es2015.js:85866)
    at Module../src/main.ts (/main-es2015.js:3464)
    at __webpack_require__ (/runtime-es2015.js:85)
    at Object.0 (/main-es2015.js:3477)

I have found this one and it works well.