I used to visit her and I always wondered why she had those dreadful pictures on the wall.
If I remove the second I from the sentence, will it be grammatically correct ? I.e.
I used to visit her and always wondered why she had those dreadful pictures on the wall.
Is this grammatically correct and good for formal usage ?