added thumbnails code