I think it should fall back to typeImage = image->GetFileName() here. That should restore behavior before mentioned change.