fix path for galleryDir by appending user determined in constructor
call the non static member method via  instead of self.
Make create method private. It requires a correct initialization of the object and relies on object state.
Merge pull request #1466 from owncloud/fix_gallery_thumbnail_generation

Fix gallery thumbnail generation