updated er table relationship to split img details into seperate tables.