minor thumbniler refactoring and optimizations

* use 8bit internal images
* drop on background only if image has alpha
* pad scaling will drop on background in the process