Move InitPicutures and getPropertyType to ItemService and add unit test for services/main.js