fix bug in submitting image in nc side.