Your example "I like to take photos" is correct but as The oxford book says the best form is "I like taking photos" if you are speaking in General.
Ex. from the Oxford Book : Verbs followed by either the -ing form or the infinitive
1. When verbs like can't bear , like, love, hate, prefer are followed by the -ing form, they tend to refer to a GENERAL activity.
2. BUT when these verbs are followed by the infinitive, they tend to refer to PARTICULAR occasions.