shell script for deploying and creating thumbnails