only store thumb if is defined