rewrite of getimages to use config/repo/instrument