Mod to image format handling in PREMIS code