save XMP markers
fix printf arguments