Fix for thumbnails #172.