minor changes
added thumbnails function