Adding dynamic modal creation for image links