Shell script to resize image files