Added api method to get photos