added code for generating thumbs