I was confused about why this was here.  Maybe you can put it closer to where it is used in gotBlob below?  And does it make sense to combine the exif writing code with the other metadata scripts or can you load the exif stuff separately?