added working sscript for processing thrumbnail image