A bash script to resize all images in a directory