fix Image crashes in mac when load tag file