fixes #9622: reset to inline-block for img-thumbnail, but keep block for .thumbnail > img