added a script for recursively image resizing