Allow custom path for thumbnail creation

1. Added settings to generate thumbnails in user defined basedirs