ported the Thumbnail widget class from Lamiae.