Change thumbnail-variable to more general variable