resize images in a directory with a specail form