Support TIFF format output

The container should take as input a file format (currently "png" or "tiff") and create output files in that format.