changed media to has many through

Fixes #145
that's what I was thinking. It might not be necessary, but considering that adding these fields has been having some issues, I think it might be a good idea to start testing this.