Made fetchPictures return an array