resize images matching a file glob and write them to a target folder