Make a new image library, loading images from the filesystem (running in Node.js) or from URLs (running in a web browser).
directory containing images, relative to the current folder (Node.js) or URL (web); must be "img"
images to load from the directory, e.g. "boromir.jpg"; names must be unique
Library of pre-loaded images.