Updating code for thumbnails to add duration