update images and anchors to arrays