ajax loads new images on form page

ok, ajax returns the newly uploaded img to the page you are currently on. next, I need to pass that url into the forms field.