Change data attribute for image reference