You can probably rewrite this function without the "that" by passing in instead, the imgs, getMoreText func, buildMoreTextMarkup func. You could probably also remove the that.docScannedForImages by taking in an event firer where the listener to the event would set this.

Also the function and property are probably misnamed since it doesn't really scan for images, it actually inserts the alt text markup that should be displayed.