adds conditional thumb path