use batch to get thumb