added change handler so the image updates if the email changes