Bash script for batch image reduction while maintaining folder structure.