encoding svg when storing process image