I am using BuddyPress on my site. I have a logo upload field. I have a custom function that copies profile information into my new site. New site is using Divi theme. I am copying the filename but not the actual file. How can I copy the actual file to the new site so it attaches to the image?