Create an image in NativeScript from file using code

For my NS Angular projects, I often have images inside the src/images directory that I want to display in my app – for example on a Map. The docs on how to create an Image object and load its source from code (TypeScript) are pretty fuzzy. However, it is pretty straightforward (shared/utils/image.ts):