modify getAllPictures