put picture object constructor and picture1, picture2 etc. in pictureService.js. App works as it did when it was part of pictureController.