working photo submit button but not saving image