Updated the library to fetch only Photos from the library.
Refactoring the library