title: Handle images in repository or service?
body: <p>I have UsersService and UsersRepository.<br>
  UserModel looks like</p>
  <pre><code>{id:1, name: 'Eugene', age: 23}
  </code></pre>
  <p>Each user has an avatar and the avatar filename is just user id (for user with id 1 image will stored as &quot;/assets/usersAvatars/1.jpg&quot;)</p>
  <ol>
  <li>I don't store filename info in a database, is it the correct approach?</li>
  <li>In the situation where I have to return a user object but with avatar field too (I suppose this is needed for each request), where should I place logic for attaching this &quot;avatar&quot; field to user object, Repository or Service?<br></li>
  </ol>
  <pre><code>{id:1, name: 'Eugene', age: 23, avatar: "/assets/usersAvatars/1.jpg"}</code></pre>