make the extract exif method use a callback