image repository get and add