Get thumbnails working (they were completely broken).