Changing data attribute for image reference