working thumbnail generation and display added