deploy_image limit the number of active threads during reprogramming