Fix js interception of add-image links in modal