Moved image preloading to PixActivity so that we only do it when we actually use images
Properly update http root when adding a new image so that the reference is correct upon insertion into document