First time bash script with imagemagick