added the get pictures part