Make _getexif a function