InternalPhotos cydia tweak enables Apple’s internal settings for Photos app. The gear icon is added in the Albums tab page (as seen in screenshot) for the access.
You can also activate the internal settings by double tapping status bar. (this is the iOS implementation from internal) But make sure you have no Activator events assigned there or whatever possible replacement.
Note that the gear icon is only visible in the Albums tab of Photos app.