Add a ref attr to image, which can be used for ad swipeshow.