Added thumbnail subprocess, and minor cleaning
Merged dev => master for thumb support