Issue #56: code deduplication

Make initThumbs() use addThumb() method
Thumbnails for duplicate images are loaded on demand now