Added border to thumbnails

See #3343