resizes all images in a directory