use tmp dir for image extraction output