imagefactory: Log to stdout, not a file

The log file was getting deleted when the task finished even on error,
which was obviously annoying.  We can just print to stdout given that
we're running imagefactory synchronously anyways.