factory method to genarate thumbnails
Merge branch 'master' of https://github.com/RixTox/owncloud-thumbnail