update thumbnail and thumbnail generation