Change image_refs table to be more generic, going to be model for all other modules