Refactored extractExifInformation into two functions