generateAllThumbnails

function to generate all thumbnails for images in source folders staring from a provided dir