[THUMBS] Corrected the thumbnail function