Added a function to retrieve an HTML image of a thumbnail