Added lightbox support

Added lightbox support. Also update jquery version and changed model in
order to support previews.
add image with web interface
small refactoring
image preview added.