moved image repository to own class file