Started preparing for showing images in the browser.
Added correct preambles and some comments