refactor repos to use correct generic parameter
added routeimage proxy and model.