Minimal images in HTML DOM.

Manages HTML DOM elements such that only visible images, previous set of
images, and next set of images are written. This should allow the
browser to maintain a minimal set of data in memory.