look at media_sideload_image for this
look at media_sideload_image for this