Fix gallery
* generate thumbs
* hack to fix lb-image display issue