Updated default thumbnail creation to use dynamic function rather than static HTML variable.