fix reset logic for image upload