Added command line thumbnail creation
Thumbnails created on image generation
Fixed templates