Adds anchors to the images.