apos.getFirstImage is a browser-side function to retrieve the first image found in a particular area in a particular page object. apos.getFilePath returns a valid URL to that image. Most of the time we prefer to render templates on the server side, but the browser side approach is occasionally handy