Fix for issue #282

Material selector now renders preview thumbnails.
Merge pull request #307 from thecelloman/fix282

Fix for issue #282