Revert "Accessing the photo library"

This reverts commit 3db7ed8538f2faee7a62bb6e511c850d406efcbd.
Revert "Revert "Accessing the photo library""

This reverts commit 22685dc9c899cc7ae3db6ce407d731a8d527c2d0.