Improved get photos method