Bash script in order to resize and compress images on current directory