make svg preview backend work with encryption