Fix link tooltip for expanded images (#677)