changed media to has many through

Fixes #145
Looks good :+1: