added photo search functionality