Added function to get photoArray & extract links