Revert "tools.deploy.test: use temp directory for deploy image."

This reverts commit 233b8e1ba611888ff9b86ddba3152c4fd352504d.