Preview modules are used to generate thumbnails, right now WEBK have gif, jpg, png and txt. (txt preview module contains aliases for sourcecodes like cpp)
If you want to create a new preview module, you need to add it in webk/include/init.php Check the existings module to understand how to proceed, further information is coming soon.