A 3-year female child presented with high grade fever for 5 days and her wbc count 17000. USG leads to left pyonephrosis with pus obstruction. Renal scan shows severe impairement of function.

What should be the line of treatment? Does surgery is needed?