Improve getting of xmp data