Added one-to-many between user and pictures, added model logic