implemented image manager and image storage, working on relations