Adds thumbnail condition to _thumbnail partial