get ifd and sub tags from jpg file