Bash script to edit(crop/resize/fit)images using command line imagemagick