add output of metadata in tiff headers. Requires pillow >= 2.3, but should fail gracefully without it