use PictureRepository to save a picture