process picture in batch