How to use web image loader for new 3Dcornerstonejs

I used to use this lib - GitHub - cornerstonejs/cornerstoneWebImageLoader: Cornerstone Image Loader for Web Images (PNG, JPEG).
But it’s deprecated for 3Dcornerstonejs.
I tried this implementation - But it is not clear how to use it. Should i copy all demo/helper functions? Do you have step by step guide to load png/jpg using 3Dcornerstonejs ?