#10 generate thumbnails. more fixes