fix getting of photos