Added photo analytics tracking and image preloading.