Fixes template path and preview image generation, easy permission setup