Refactors image relationships and store controller loading to lessen the hit on the db