removed some superflous features.  Improved how img tags are added to the dom.