changed assets to images, added tests, created relations