adding in exif and xmp data and replaceState for categories
merge master