[PATCH] remove mutable default args in _do_target_image