fix metadata transfer between jpeg and tiff