1. I like taking picutures of myself.

2. I like taking pictures of me.

(Are both grammatical?)

Yes