Break image and referrers into a has_many relationship