Use mako instead of jinja, add image viewing and also image SQL storing.