now allows for replacing of an directory of images by resolution