Fix for data transformer giving no output.
Make the DataWriter more flexible with output image filenames.