I\'m trying to write a best-practice php function to convert existing image tags to a richer picture element. Please assume I\'ve already converted and saved all image versions