How do I pass data from a pop up window photo gallery to a form field?