output dir and correct base image